freetype +universal fails to install
Gianluca Toso
gtoso at presso.net
Thu Oct 25 07:03:11 PDT 2007
Gianluca Toso ha scritto:
> I had the same problem[2] on PPC and I found a solution, but I don't
> know if it's the right way.
[...]
> +if {[variant_isset universal]} {
> + configure.ldflags-append "-isysroot
> /Developer/SDKs/MacOSX10.4u.sdk"
> +}
> +
[...]
> However Apple[1] tells LDFLAGS="-arch i386 -arch ppc",
> but the same thing of the note about CFLAGS for PPC may be true too for
> LDFLAGS al least in the case of dynamic lib.
>
> The same is for libiconv, so if it's the right way it maybe better
> change directly the line "default configure.universal_ldflags ..." in
> /opt/local/share/macports/Tcl/port1.0/portconfigure.tcl.
>
> PS: It works too with "-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib"
> instead of "-isysroot /Developer/SDKs/MacOSX10.4u.sdk".
>
>
> 1) http://developer.apple.com/technotes/tn2005/tn2137.html
I found this old thread:
http://lists.apple.com/archives/unix-porting/2005/Oct/msg00003.html
http://lists.apple.com/archives/unix-porting/2005/Oct/msg00004.html
So it seems that it's ok to pass -syslibroot to ld trought
-Wl,-syslibroot or -isysroot in LDFLAGS, but only if the makefile
doesn't pass CFLAGS (where -isysroot is already present) for linking.
More information about the macports-users
mailing list