Howto build MacGPGME for 10.4 Universal

View: New views
1 Messages — Rating Filter:   Alert me  

Howto build MacGPGME for 10.4 Universal

by Andrew Ferguson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I recently finished building GPG Keychain Access 0.8.0DP2 as a  
Universal binary for 10.4 and in the process had to work out how to re-
target MacGPGME.framework for 10.4 as well. I followed the  
instructions in the trunk MacGPGME README, but had to adjust the  
CFLAGS variables as follows:

for libgettext:

CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4 -arch i386 -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4" \
     ./configure --disable-shared --disable-dependency-tracking \
     --disable-java --disable-native-java --disable-csharp \
     --with-included-gettext --with-included-glib \
     --with-included-libcroco --with-included-libxml --disable-
libasprintf

for libgpg-error:

CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4 -arch i386 -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4" \
     LDFLAGS="-framework CoreFoundation" \
     ./configure --disable-shared --disable-dependency-tracking --with-
libintl-prefix=/usr/local

and for libgpgme (which also needed LDFLAGS):

CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4 -arch i386 -
DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4" \
     LDFLAGS="-framework CoreFoundation" \
     ./configure --enable-static --disable-shared --disable-dependency-
tracking --with-gpg-error-prefix=/usr/local --with-gpg=/usr/local/bin/
gpg --without-pth --disable-glibtest


Basically, you just need to add "-DMACOSX_DEPLOYMENT_TARGET=10.4 -
mmacosx-version-min=10.4" after each -arch option, and select the  
10.4u SDK.


Note: I did not actually test these libraries on a 10.4 machine, or a  
PowerPC machine. I base my belief that this works on a) The fact that  
it built, and b) The fact that after building like this, XCode let me  
build MacGPGME for ppc & i386 with 10.4 as the target and the 10.4u  
SDK selected.


cheers,
Andrew

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Macgpg-devl mailing list
Macgpg-devl@...
https://lists.sourceforge.net/lists/listinfo/macgpg-devl