aboutsummaryrefslogtreecommitdiff
path: root/aix
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:10 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:10 -0700
commit8e34b3a8024c028dd9fd21d70525fc6d215efde5 (patch)
tree896a32f54abdf42ae3c1bb3c5d5627668b481ce4 /aix
parent13a294f044ef0a89b2dcbfbb5d4d4c792673348e (diff)
downloadzlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.tar.gz
zlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.tar.bz2
zlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.zip
zlib 1.2.0.2v1.2.0.2
Diffstat (limited to 'aix')
-rw-r--r--aix/README9
-rw-r--r--aix/configure.diff57
-rw-r--r--aix/mkexps37
3 files changed, 0 insertions, 103 deletions
diff --git a/aix/README b/aix/README
deleted file mode 100644
index 235ba59..0000000
--- a/aix/README
+++ /dev/null
@@ -1,9 +0,0 @@
1To make a shared library:
2
31. Compile a static library
42. Use mkexps on that to create libz.exp
53. Apply the configure.diff patch to configure
64. Run the new configure to make a new Makefile
75. Use the new Makefile to make the shared library
8
9Courtesy of dbakker@arrayasolutions.com
diff --git a/aix/configure.diff b/aix/configure.diff
deleted file mode 100644
index c699129..0000000
--- a/aix/configure.diff
+++ /dev/null
@@ -1,57 +0,0 @@
1*** ../orig/zlib-1.1.4/configure Wed Jul 8 14:19:35 1998
2--- configure Sun Feb 9 11:11:19 2003
3***************
4*** 18,23 ****
5--- 18,24 ----
6 # If you have problems, try without defining CC and CFLAGS before reporting
7 # an error.
8
9+ LDFLAGS="-L. -lz"
10 LIBS=libz.a
11 SHAREDLIB=libz.so
12 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
13***************
14*** 116,121 ****
15--- 117,128 ----
16 SFLAGS=${CFLAGS-"-Kconform_pic -O"}
17 CFLAGS=${CFLAGS-"-O"}
18 LDSHARED=${LDSHARED-"cc -G"};;
19+ AIX*)
20+ SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
21+ CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
22+ LDTESTSHARED=${LDSHARED-"cc -G"}
23+ LDSHAREDFLAGS="-L. libz.so"
24+ LDSHARED=${LDSHARED-"cc -G"};;
25 # send working options for other systems to support@gzip.org
26 *) SFLAGS=${CFLAGS-"-O"}
27 CFLAGS=${CFLAGS-"-O"}
28***************
29*** 127,135 ****
30 echo Checking for shared library support...
31 # we must test in two steps (cc then ld), required at least on SunOS 4.x
32 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
33! test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
34 CFLAGS="$SFLAGS"
35 LIBS="$SHAREDLIB.$VER"
36 echo Building shared library $SHAREDLIB.$VER with $CC.
37 elif test -z "$old_cc" -a -z "$old_cflags"; then
38 echo No shared library suppport.
39--- 134,143 ----
40 echo Checking for shared library support...
41 # we must test in two steps (cc then ld), required at least on SunOS 4.x
42 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
43! test "`($LDTESTSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
44 CFLAGS="$SFLAGS"
45 LIBS="$SHAREDLIB.$VER"
46+ LDFLAGS="$LDSHAREDFLAGS"
47 echo Building shared library $SHAREDLIB.$VER with $CC.
48 elif test -z "$old_cc" -a -z "$old_cflags"; then
49 echo No shared library suppport.
50***************
51*** 209,212 ****
52--- 217,221 ----
53 /^exec_prefix *=/s%=.*%=$exec_prefix%
54 /^libdir *=/s%=.*%=$libdir%
55 /^includedir *=/s%=.*%=$includedir%
56+ /^LDFLAGS *=/s%=.*%=$LDFLAGS%
57 " > Makefile
diff --git a/aix/mkexps b/aix/mkexps
deleted file mode 100644
index 6c55eae..0000000
--- a/aix/mkexps
+++ /dev/null
@@ -1,37 +0,0 @@
1#!/bin/ksh
2#
3# mkexps - make export list
4# This program creates an export list by combining all the "." and normal names
5# into one list.
6#
7if [[ "$#" -ne 1 ]]
8then
9 print "Usage: mkexps ArchiveFile"
10 exit -2
11fi
12if [[ ! -f $1 ]]
13then
14 print "mkexps: Cannot open file \"$1\""
15 exit -1
16fi
17
18dump -g $1 | awk '
19BEGIN {
20 top = 1
21}
22/^[ ]*[0-9][0-9]*/ {
23 if ( (n = index( $2, "." )) > 0 ) {
24 export_array[ top++ ] = substr( $2, n+1, length( $2 ))
25 }
26 else {
27 export_array[ top++ ] = $2
28 }
29}
30
31END {
32 for ( i = 1; i < top; i++ )
33 {
34 print export_array[ i ]
35 }
36
37}' | sort | uniq