]> The Tcpdump Group git mirrors - libpcap/commitdiff
Build fat appropriately for Leopard.
authorGuy Harris <[email protected]>
Tue, 6 Apr 2010 22:06:34 +0000 (15:06 -0700)
committerGuy Harris <[email protected]>
Tue, 6 Apr 2010 22:06:34 +0000 (15:06 -0700)
configure
configure.in

index e4caa27f7111c19f04f8e9f6ee97e32d5bdc6ba2..a2d96d587c199feadb477d9255168f9721981b78 100755 (executable)
--- a/configure
+++ b/configure
@@ -9549,12 +9549,22 @@ fi
        if test "$enable_universal" != "no"; then
                case "$host_os" in
 
+               darwin9.*)
+                       #
+                       # Leopard.  Build for 32-bit PowerPC, 64-bit
+                       # PowerPC, x86, and x86-64, with 32-bit PowerPC
+                       # first.  (That's what Apple does.)
+                       #
+                       V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
+                       LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
+                       ;;
+
                darwin10.*)
                        #
                        # Snow Leopard.  Build for x86-64, x86, and
-                       # PPC, with x86-64 first.  (That's what Apple
-                       # does, even though Snow Leopard doesn't
-                       # run on PPC, so PPC libpcap runs under
+                       # 32-bit PowerPC, with x86-64 first.  (That's
+                       # what Apple does, even though Snow Leopard
+                       # doesn't run on PPC, so PPC libpcap runs under
                        # Rosetta, and Rosetta doesn't support BPF
                        # ioctls, so PPC programs can't do live
                        # captures.)
index 2a0ddf1a96c1cfd8cbed81a5f9f9584e20a831d0..43ea7cb7251ecf30c5508f98b8a470f70814817c 100644 (file)
@@ -1174,12 +1174,22 @@ darwin*)
        if test "$enable_universal" != "no"; then
                case "$host_os" in
 
+               darwin9.*)
+                       #
+                       # Leopard.  Build for 32-bit PowerPC, 64-bit
+                       # PowerPC, x86, and x86-64, with 32-bit PowerPC
+                       # first.  (That's what Apple does.)
+                       #
+                       V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
+                       LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
+                       ;;
+
                darwin10.*)
                        #
                        # Snow Leopard.  Build for x86-64, x86, and
-                       # PPC, with x86-64 first.  (That's what Apple
-                       # does, even though Snow Leopard doesn't
-                       # run on PPC, so PPC libpcap runs under
+                       # 32-bit PowerPC, with x86-64 first.  (That's
+                       # what Apple does, even though Snow Leopard
+                       # doesn't run on PPC, so PPC libpcap runs under
                        # Rosetta, and Rosetta doesn't support BPF
                        # ioctls, so PPC programs can't do live
                        # captures.)