First steps

This commit is contained in:
JusicP
2020-11-19 22:37:27 +02:00
parent 6920a3bd08
commit 3434111923
1341 changed files with 883624 additions and 46746 deletions
+3 -3
View File
@@ -18,14 +18,14 @@
CC=gcc
CFLAGS=-m32 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
CFLAGS=-O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DZLIB_DEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
SFLAGS=-m32 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
LDFLAGS=-m32
SFLAGS=-O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
LDFLAGS=
TEST_LDFLAGS=-L. libz.a
LDSHARED=gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map
CPP=gcc -E
+238
View File
@@ -859,3 +859,241 @@ uname = Linux
--------------------
--------------------
./configure
Sat 14 Nov 2020 07:28:26 PM EET
Checking for gcc...
=== ztest11454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -c ztest11454.c
... using gcc
Checking for obsessive-compulsive compiler options...
=== ztest11454.c ===
int foo() { return 0; }
===
gcc -c -O3 ztest11454.c
Checking for shared library support...
=== ztest11454.c ===
extern int getchar();
int hello() {return getchar();}
===
gcc -w -c -O3 -fPIC ztest11454.c
gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest11454.so ztest11454.o
Building shared library libz.so.1.2.11 with gcc.
=== ztest11454.c ===
#include <stdio.h>
#include <stdlib.h>
size_t dummy = 0;
===
gcc -c -O3 ztest11454.c
Checking for size_t... Yes.
=== ztest11454.c ===
#include <sys/types.h>
off64_t dummy = 0;
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest11454.c
Checking for off64_t... Yes.
Checking for fseeko... Yes.
=== ztest11454.c ===
#include <string.h>
#include <errno.h>
int main() { return strlen(strerror(errno)); }
===
gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest11454 ztest11454.c
Checking for strerror... Yes.
=== ztest11454.c ===
#include <unistd.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest11454.c
Checking for unistd.h... Yes.
=== ztest11454.c ===
#include <stdarg.h>
int main() { return 0; }
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest11454.c
Checking for stdarg.h... Yes.
=== ztest11454.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 ztest11454.c
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
=== ztest11454.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 ztest11454 ztest11454.c
Checking for vsnprintf() in stdio.h... Yes.
=== ztest11454.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 ztest11454.c
Checking for return value of vsnprintf()... Yes.
=== ztest11454.c ===
#define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
int ZLIB_INTERNAL foo;
int main()
{
return 0;
}
===
gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest11454.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 = gcc -E
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.11
STATICLIB = libz.a
TEST = all teststatic testshared test64
VER = 1.2.11
Z_U4 =
SRCDIR =
exec_prefix = ${prefix}
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${prefix}/share/man
prefix = /usr/local
sharedlibdir = ${libdir}
uname = Linux
--------------------
--------------------
./configure --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
Sat 14 Nov 2020 07:30:46 PM EET
unknown option: --build=i686-pc-linux-gnu
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
Sat 14 Nov 2020 07:31:40 PM EET
unknown option: --build=i686-pc-linux-gnu
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --host= --with-sysroot= --enable-static
Thu 19 Nov 2020 07:03:05 PM EET
unknown option: --host=
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --host= --with-sysroot= --enable-static
Thu 19 Nov 2020 07:03:07 PM EET
unknown option: --host=
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --host= --with-sysroot= --enable-static
Thu 19 Nov 2020 07:03:13 PM EET
unknown option: --host=
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --with-sysroot= --enable-static
Thu 19 Nov 2020 07:03:40 PM EET
unknown option: --with-sysroot=
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure --enable-static
Thu 19 Nov 2020 07:03:45 PM EET
unknown option: --enable-static
./configure --help for help
** ./configure aborting.
--------------------
--------------------
./configure -enable-static
Thu 19 Nov 2020 07:03:48 PM EET
--------------------
./configure -host= --with-sysroot= --enable-static
Thu 19 Nov 2020 07:03:55 PM EET
usage:
configure [--const] [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]
[--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]
[--includedir=INCLUDEDIR] [--archs="-arch i386 -arch x86_64"]