Ticket #12988: patch

File patch, 2.4 KB (added by adfernandes (Andrew Fernandes), 16 years ago)

builds cdf with '-fno-second-underscore' for compatibility with opendx

  • cdf/Portfile

    diff -uNr /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf/Portfile cdf/Portfile
    old new  
    33PortSystem 1.0
    44name            cdf
    55version         32
     6revision    1
    67maintainers     gwright@macports.org
    78platforms       darwin
    89categories      science
  • cdf/files/patch-Makefile

    diff -uNr /opt/local/var/macports/sources/rsync.macports.org/release/ports/science/cdf/files/patch-Makefile cdf/files/patch-Makefile
    old new  
    1414+COPTIONS_macosx_ppc=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
    1515 COPTIONSld_macosx_ppc=-arch ppc -isysroot/Developer/SDKs/MacOSX10.4u.sdk
    1616-FOPTIONS_macosx_ppc=-w
    17 +FOPTIONS_macosx_ppc=-w -fsecond-underscore
     17+FOPTIONS_macosx_ppc=-w -fno-second-underscore
    1818 FOPTIONSld_macosx_ppc=
    1919 CURSESLIB_macosx_ppc=-lcurses
    2020 SYSLIBSexe_macosx_ppc=-L/Developer/SDKs/MacOSX10.4u.sdk -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -lm -lc -lgcc -lSystemStubs
     
    3131+COPTIONS_macosx_ppc64=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -m64 -DMACOSX64 -D__ppc__ -D__MACH__ -D__APPLE__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
    3232 COPTIONSld_macosx_ppc64=-arch ppc64 -isysroot/Developer/SDKs/MacOSX10.4u.sdk
    3333-FOPTIONS_macosx_ppc64=-w
    34 +FOPTIONS_macosx_ppc64=-w -fsecond-underscore
     34+FOPTIONS_macosx_ppc64=-w -fno-second-underscore
    3535 FOPTIONSld_macosx_ppc64=
    3636 CURSESLIB_macosx_ppc64=-lcurses
    3737 SYSLIBSexe_macosx_ppc64=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/ppc64 -lm -lc -gcc
     
    4949-FOPTIONS_macosx_i386=-w
    5050+COPTIONS_macosx_i386=-isysroot/Developer/SDKs/MacOSX10.4u.sdk -Di386 -D__MACH__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
    5151+COPTIONSld_macosx_i386=-isysroot/Developer/SDKs/MacOSX10.4u.sdk
    52 +FOPTIONS_macosx_i386=-w -fsecond-underscore
     52+FOPTIONS_macosx_i386=-w -fno-second-underscore
    5353 FOPTIONSld_macosx_i386=
    5454 CURSESLIB_macosx_i386=-lcurses
    5555 SYSLIBSexe_macosx_i386=-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -lm -lc -lgcc