Almost added Mac OS X nasm support
authorSam Lantinga <slouken@libsdl.org>
Mon, 26 Jun 2006 05:27:15 +0000
changeset 18895225a9cc25a2
parent 1888 488eba319a25
child 1890 2c22f1351941
Almost added Mac OS X nasm support
build-scripts/strip_fPIC.sh
configure.in
     1.1 --- a/build-scripts/strip_fPIC.sh	Mon Jun 26 01:33:53 2006 +0000
     1.2 +++ b/build-scripts/strip_fPIC.sh	Mon Jun 26 05:27:15 2006 +0000
     1.3 @@ -8,6 +8,9 @@
     1.4          -?PIC)
     1.5              # Ignore -fPIC and -DPIC options
     1.6              ;;
     1.7 +        -fno-common)
     1.8 +            # Ignore -fPIC and -DPIC options
     1.9 +            ;;
    1.10          *)
    1.11              command="$command $1"
    1.12              ;;
     2.1 --- a/configure.in	Mon Jun 26 01:33:53 2006 +0000
     2.2 +++ b/configure.in	Mon Jun 26 05:27:15 2006 +0000
     2.3 @@ -611,6 +611,9 @@
     2.4                    openbsd)
     2.5                        NASMFLAGS="-f aoutb"
     2.6                        ;;
     2.7 +                  macosx)
     2.8 +                      NASMFLAGS="-f macho"
     2.9 +                      ;;
    2.10                    *)
    2.11                        NASMFLAGS="-f elf"
    2.12                        ;;
    2.13 @@ -620,7 +623,7 @@
    2.14  
    2.15              dnl See if hidden visibility is supported
    2.16              echo 'GLOBAL _bar:function hidden' > nasm_vis.asm
    2.17 -            if $NASM $NASMFLAGS nasm_vis.asm -o nasm_vis.o >&AS_MESSAGE_LOG_FD ; then
    2.18 +            if $NASM $NASMFLAGS nasm_vis.asm -o nasm_vis.o >&AS_MESSAGE_LOG_FD 2>&1; then
    2.19                  NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
    2.20              fi
    2.21              rm -f nasm_vis.asm nasm_vis.o
    2.22 @@ -2413,6 +2416,10 @@
    2.23          CheckDummyAudio
    2.24          CheckDLOPEN
    2.25  
    2.26 +        # Temporarily disabled:
    2.27 +        # ld: mmxp2_32.o has external relocation entries in non-writable section (__TEXT,__text) for symbols: _mmxreturn
    2.28 +        #CheckNASM
    2.29 +
    2.30          # Set up files for the shared object loading library
    2.31          # (this needs to be done before the dynamic X11 check)
    2.32          if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then