Ignore:
Timestamp:
Nov 12, 2007, 12:07:35 AM (12 years ago)
Author:
landonf@…
Message:

Use MacPorts' idea of the universal cflags

Location:
trunk/dports/archivers/zlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/zlib/Portfile

    r30304 r30932  
    3131}
    3232
     33post-patch {
     34    # Add the universal CFLAGS, if they're needed
     35    reinplace s|@UNIVERSAL_CFLAGS@|${configure.universal_cflags}|g ${worksrcpath}/Makefile.in
     36}
     37
    3338configure.args  --shared
    3439configure.universal_args   
  • trunk/dports/archivers/zlib/files/patch-Makefile-universal.diff

    r30304 r30932  
    66 $(SHAREDLIBV): libz.a $(OBJS)
    77-       $(LDSHARED) -o $@ $(OBJS)
    8 +       $(LDSHARED) -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -o $@ $(OBJS)
     8+       $(LDSHARED) @UNIVERSAL_CFLAGS@ -o $@ $(OBJS)
    99        rm -f $(SHAREDLIB) $(SHAREDLIBM)
    1010        ln -s $@ $(SHAREDLIB)
Note: See TracChangeset for help on using the changeset viewer.