|
|
@ -1,68 +1,68 @@ |
|
|
|
-------------------- |
|
|
|
-------------------- |
|
|
|
./configure --prefix=lib |
|
|
|
./configure --prefix=../Test |
|
|
|
Wed 14 Jun 2023 09:59:37 PM CDT |
|
|
|
Wed 28 Jun 2023 08:57:56 PM CDT |
|
|
|
Checking for gcc... |
|
|
|
Checking for gcc... |
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
extern int getchar(); |
|
|
|
extern int getchar(); |
|
|
|
int hello() {return getchar();} |
|
|
|
int hello() {return getchar();} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c ztest232834.c |
|
|
|
gcc -c ztest699269.c |
|
|
|
... using gcc |
|
|
|
... using gcc |
|
|
|
|
|
|
|
|
|
|
|
Checking for obsessive-compulsive compiler options... |
|
|
|
Checking for obsessive-compulsive compiler options... |
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
int foo() { return 0; } |
|
|
|
int foo() { return 0; } |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 ztest232834.c |
|
|
|
gcc -c -O3 ztest699269.c |
|
|
|
|
|
|
|
|
|
|
|
Checking for shared library support... |
|
|
|
Checking for shared library support... |
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
extern int getchar(); |
|
|
|
extern int getchar(); |
|
|
|
int hello() {return getchar();} |
|
|
|
int hello() {return getchar();} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -w -c -O3 -fPIC ztest232834.c |
|
|
|
gcc -w -c -O3 -fPIC ztest699269.c |
|
|
|
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest232834.so ztest232834.o |
|
|
|
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest699269.so ztest699269.o |
|
|
|
Building shared library libz.so.1.2.13 with gcc. |
|
|
|
Building shared library libz.so.1.2.13 with gcc. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
size_t dummy = 0; |
|
|
|
size_t dummy = 0; |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 ztest232834.c |
|
|
|
gcc -c -O3 ztest699269.c |
|
|
|
Checking for size_t... Yes. |
|
|
|
Checking for size_t... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <sys/types.h> |
|
|
|
#include <sys/types.h> |
|
|
|
off64_t dummy = 0; |
|
|
|
off64_t dummy = 0; |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking for off64_t... Yes. |
|
|
|
Checking for off64_t... Yes. |
|
|
|
Checking for fseeko... Yes. |
|
|
|
Checking for fseeko... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#include <errno.h> |
|
|
|
#include <errno.h> |
|
|
|
int main() { return strlen(strerror(errno)); } |
|
|
|
int main() { return strlen(strerror(errno)); } |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest232834 ztest232834.c |
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest699269 ztest699269.c |
|
|
|
Checking for strerror... Yes. |
|
|
|
Checking for strerror... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <unistd.h> |
|
|
|
#include <unistd.h> |
|
|
|
int main() { return 0; } |
|
|
|
int main() { return 0; } |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking for unistd.h... Yes. |
|
|
|
Checking for unistd.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <stdarg.h> |
|
|
|
#include <stdarg.h> |
|
|
|
int main() { return 0; } |
|
|
|
int main() { return 0; } |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking for stdarg.h... Yes. |
|
|
|
Checking for stdarg.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdarg.h> |
|
|
|
#include <stdarg.h> |
|
|
|
#include "zconf.h" |
|
|
|
#include "zconf.h" |
|
|
@ -74,10 +74,10 @@ int main() |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). |
|
|
|
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdarg.h> |
|
|
|
#include <stdarg.h> |
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
int mytest(const char *fmt, ...) |
|
|
@ -94,10 +94,10 @@ int main() |
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest232834 ztest232834.c |
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest699269 ztest699269.c |
|
|
|
Checking for vsnprintf() in stdio.h... Yes. |
|
|
|
Checking for vsnprintf() in stdio.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdarg.h> |
|
|
|
#include <stdarg.h> |
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
int mytest(const char *fmt, ...) |
|
|
@ -115,10 +115,10 @@ int main() |
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
} |
|
|
|
} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking for return value of vsnprintf()... Yes. |
|
|
|
Checking for return value of vsnprintf()... Yes. |
|
|
|
|
|
|
|
|
|
|
|
=== ztest232834.c === |
|
|
|
=== ztest699269.c === |
|
|
|
#define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
|
|
|
#define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
|
|
|
int ZLIB_INTERNAL foo; |
|
|
|
int ZLIB_INTERNAL foo; |
|
|
|
int main() |
|
|
|
int main() |
|
|
@ -126,7 +126,7 @@ int main() |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
=== |
|
|
|
=== |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest232834.c |
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest699269.c |
|
|
|
Checking for attribute(visibility) support... Yes. |
|
|
|
Checking for attribute(visibility) support... Yes. |
|
|
|
|
|
|
|
|
|
|
|
ALL = static shared all64 |
|
|
|
ALL = static shared all64 |
|
|
@ -155,333 +155,7 @@ exec_prefix = ${prefix} |
|
|
|
includedir = ${prefix}/include |
|
|
|
includedir = ${prefix}/include |
|
|
|
libdir = ${exec_prefix}/lib |
|
|
|
libdir = ${exec_prefix}/lib |
|
|
|
mandir = ${prefix}/share/man |
|
|
|
mandir = ${prefix}/share/man |
|
|
|
prefix = lib |
|
|
|
prefix = ../Test |
|
|
|
sharedlibdir = ${libdir} |
|
|
|
|
|
|
|
uname = Linux |
|
|
|
|
|
|
|
-------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------- |
|
|
|
|
|
|
|
./configure --prefix=/mnt/Storage/Documents/Code/LibraryTest/lib |
|
|
|
|
|
|
|
Wed 14 Jun 2023 10:04:47 PM CDT |
|
|
|
|
|
|
|
Checking for gcc... |
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
extern int getchar(); |
|
|
|
|
|
|
|
int hello() {return getchar();} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c ztest233472.c |
|
|
|
|
|
|
|
... using gcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checking for obsessive-compulsive compiler options... |
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
int foo() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 ztest233472.c |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checking for shared library support... |
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
extern int getchar(); |
|
|
|
|
|
|
|
int hello() {return getchar();} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -w -c -O3 -fPIC ztest233472.c |
|
|
|
|
|
|
|
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest233472.so ztest233472.o |
|
|
|
|
|
|
|
Building shared library libz.so.1.2.13 with gcc. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
size_t dummy = 0; |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 ztest233472.c |
|
|
|
|
|
|
|
Checking for size_t... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <sys/types.h> |
|
|
|
|
|
|
|
off64_t dummy = 0; |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking for off64_t... Yes. |
|
|
|
|
|
|
|
Checking for fseeko... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
#include <errno.h> |
|
|
|
|
|
|
|
int main() { return strlen(strerror(errno)); } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest233472 ztest233472.c |
|
|
|
|
|
|
|
Checking for strerror... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
int main() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking for unistd.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int main() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking for stdarg.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
#include "zconf.h" |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#ifndef STDC |
|
|
|
|
|
|
|
choke me |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
char buf[20]; |
|
|
|
|
|
|
|
va_list ap; |
|
|
|
|
|
|
|
va_start(ap, fmt); |
|
|
|
|
|
|
|
vsnprintf(buf, sizeof(buf), fmt, ap); |
|
|
|
|
|
|
|
va_end(ap); |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest233472 ztest233472.c |
|
|
|
|
|
|
|
Checking for vsnprintf() in stdio.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int n; |
|
|
|
|
|
|
|
char buf[20]; |
|
|
|
|
|
|
|
va_list ap; |
|
|
|
|
|
|
|
va_start(ap, fmt); |
|
|
|
|
|
|
|
n = vsnprintf(buf, sizeof(buf), fmt, ap); |
|
|
|
|
|
|
|
va_end(ap); |
|
|
|
|
|
|
|
return n; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking for return value of vsnprintf()... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233472.c === |
|
|
|
|
|
|
|
#define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
|
|
|
|
|
|
|
int ZLIB_INTERNAL foo; |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233472.c |
|
|
|
|
|
|
|
Checking for attribute(visibility) support... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALL = static shared all64 |
|
|
|
|
|
|
|
AR = ar |
|
|
|
|
|
|
|
ARFLAGS = rc |
|
|
|
|
|
|
|
CC = gcc |
|
|
|
|
|
|
|
CFLAGS = -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN |
|
|
|
|
|
|
|
CPP = |
|
|
|
|
|
|
|
EXE = |
|
|
|
|
|
|
|
LDCONFIG = ldconfig |
|
|
|
|
|
|
|
LDFLAGS = |
|
|
|
|
|
|
|
LDSHARED = gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map |
|
|
|
|
|
|
|
LDSHAREDLIBC = -lc |
|
|
|
|
|
|
|
OBJC = $(OBJZ) $(OBJG) |
|
|
|
|
|
|
|
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG) |
|
|
|
|
|
|
|
RANLIB = ranlib |
|
|
|
|
|
|
|
SFLAGS = -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN |
|
|
|
|
|
|
|
SHAREDLIB = libz.so |
|
|
|
|
|
|
|
SHAREDLIBM = libz.so.1 |
|
|
|
|
|
|
|
SHAREDLIBV = libz.so.1.2.13 |
|
|
|
|
|
|
|
STATICLIB = libz.a |
|
|
|
|
|
|
|
TEST = all teststatic testshared test64 |
|
|
|
|
|
|
|
VER = 1.2.13 |
|
|
|
|
|
|
|
SRCDIR = |
|
|
|
|
|
|
|
exec_prefix = ${prefix} |
|
|
|
|
|
|
|
includedir = ${prefix}/include |
|
|
|
|
|
|
|
libdir = ${exec_prefix}/lib |
|
|
|
|
|
|
|
mandir = ${prefix}/share/man |
|
|
|
|
|
|
|
prefix = /mnt/Storage/Documents/Code/LibraryTest/lib |
|
|
|
|
|
|
|
sharedlibdir = ${libdir} |
|
|
|
|
|
|
|
uname = Linux |
|
|
|
|
|
|
|
-------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------- |
|
|
|
|
|
|
|
./configure --prefix=/mnt/Storage/Documents/Code/LibraryTest/lib/zlib-1.2.13 |
|
|
|
|
|
|
|
Wed 14 Jun 2023 10:05:17 PM CDT |
|
|
|
|
|
|
|
Checking for gcc... |
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
extern int getchar(); |
|
|
|
|
|
|
|
int hello() {return getchar();} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c ztest233872.c |
|
|
|
|
|
|
|
... using gcc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checking for obsessive-compulsive compiler options... |
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
int foo() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 ztest233872.c |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Checking for shared library support... |
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
extern int getchar(); |
|
|
|
|
|
|
|
int hello() {return getchar();} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -w -c -O3 -fPIC ztest233872.c |
|
|
|
|
|
|
|
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest233872.so ztest233872.o |
|
|
|
|
|
|
|
Building shared library libz.so.1.2.13 with gcc. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
size_t dummy = 0; |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 ztest233872.c |
|
|
|
|
|
|
|
Checking for size_t... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <sys/types.h> |
|
|
|
|
|
|
|
off64_t dummy = 0; |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking for off64_t... Yes. |
|
|
|
|
|
|
|
Checking for fseeko... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
#include <errno.h> |
|
|
|
|
|
|
|
int main() { return strlen(strerror(errno)); } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest233872 ztest233872.c |
|
|
|
|
|
|
|
Checking for strerror... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
int main() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking for unistd.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int main() { return 0; } |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking for stdarg.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
#include "zconf.h" |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
#ifndef STDC |
|
|
|
|
|
|
|
choke me |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
char buf[20]; |
|
|
|
|
|
|
|
va_list ap; |
|
|
|
|
|
|
|
va_start(ap, fmt); |
|
|
|
|
|
|
|
vsnprintf(buf, sizeof(buf), fmt, ap); |
|
|
|
|
|
|
|
va_end(ap); |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest233872 ztest233872.c |
|
|
|
|
|
|
|
Checking for vsnprintf() in stdio.h... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
#include <stdarg.h> |
|
|
|
|
|
|
|
int mytest(const char *fmt, ...) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
int n; |
|
|
|
|
|
|
|
char buf[20]; |
|
|
|
|
|
|
|
va_list ap; |
|
|
|
|
|
|
|
va_start(ap, fmt); |
|
|
|
|
|
|
|
n = vsnprintf(buf, sizeof(buf), fmt, ap); |
|
|
|
|
|
|
|
va_end(ap); |
|
|
|
|
|
|
|
return n; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return (mytest("Hello%d\n", 1)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking for return value of vsnprintf()... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=== ztest233872.c === |
|
|
|
|
|
|
|
#define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) |
|
|
|
|
|
|
|
int ZLIB_INTERNAL foo; |
|
|
|
|
|
|
|
int main() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
=== |
|
|
|
|
|
|
|
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest233872.c |
|
|
|
|
|
|
|
Checking for attribute(visibility) support... Yes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALL = static shared all64 |
|
|
|
|
|
|
|
AR = ar |
|
|
|
|
|
|
|
ARFLAGS = rc |
|
|
|
|
|
|
|
CC = gcc |
|
|
|
|
|
|
|
CFLAGS = -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN |
|
|
|
|
|
|
|
CPP = |
|
|
|
|
|
|
|
EXE = |
|
|
|
|
|
|
|
LDCONFIG = ldconfig |
|
|
|
|
|
|
|
LDFLAGS = |
|
|
|
|
|
|
|
LDSHARED = gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map |
|
|
|
|
|
|
|
LDSHAREDLIBC = -lc |
|
|
|
|
|
|
|
OBJC = $(OBJZ) $(OBJG) |
|
|
|
|
|
|
|
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG) |
|
|
|
|
|
|
|
RANLIB = ranlib |
|
|
|
|
|
|
|
SFLAGS = -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN |
|
|
|
|
|
|
|
SHAREDLIB = libz.so |
|
|
|
|
|
|
|
SHAREDLIBM = libz.so.1 |
|
|
|
|
|
|
|
SHAREDLIBV = libz.so.1.2.13 |
|
|
|
|
|
|
|
STATICLIB = libz.a |
|
|
|
|
|
|
|
TEST = all teststatic testshared test64 |
|
|
|
|
|
|
|
VER = 1.2.13 |
|
|
|
|
|
|
|
SRCDIR = |
|
|
|
|
|
|
|
exec_prefix = ${prefix} |
|
|
|
|
|
|
|
includedir = ${prefix}/include |
|
|
|
|
|
|
|
libdir = ${exec_prefix}/lib |
|
|
|
|
|
|
|
mandir = ${prefix}/share/man |
|
|
|
|
|
|
|
prefix = /mnt/Storage/Documents/Code/LibraryTest/lib/zlib-1.2.13 |
|
|
|
|
|
|
|
sharedlibdir = ${libdir} |
|
|
|
sharedlibdir = ${libdir} |
|
|
|
uname = Linux |
|
|
|
uname = Linux |
|
|
|
-------------------- |
|
|
|
-------------------- |
|
|
|