File: compile-curl-universal.sh

package info (click to toggle)
freepops 0.2.9-4.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,284 kB
  • ctags: 2,684
  • sloc: ansic: 16,605; sh: 1,797; makefile: 1,369; cpp: 353
file content (22 lines) | stat: -rwxr-xr-x 863 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

PREFIX=/Users/gares/freepops/
set -e
#set -x

rm -rf curl-7.18.1
tar -xvzf curl-7.18.1.tar.gz
cd curl-7.18.1
CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -mmacosx-version-min=10.4" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/" \
./configure --prefix=$PREFIX --disable-shared --with-ssl=/Developer/SDKs/MacOSX10.4u.sdk/usr/include/openssl/ && \
make && sudo make install && make distclean
CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -mmacosx-version-min=10.4" \
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/" \
./configure --prefix=$PREFIX --disable-shared --with-ssl=/Developer/SDKs/MacOSX10.4u.sdk/usr/include/openssl/ && \
make
lipo -create -output ../libcurl.a lib/.libs/libcurl.a $PREFIX/lib/libcurl.a
sudo mv ../libcurl.a $PREFIX/lib/
file $PREFIX/lib/libcurl.a

# && sudo make install