From 35153001edaea442b7a3abf30e2172db4465ddd4 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Thu, 6 Aug 2020 16:19:55 +0300 Subject: [PATCH] Use -fPIC instead of -fpic --- Makefile.FreeBSD | 2 +- Makefile.Linux | 2 +- Makefile.Solaris | 2 +- Makefile.Solaris-gcc | 2 +- Makefile.openwrt-mips | 2 +- Makefile.unix | 2 +- bin/.gitignore | 3 ++- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile.FreeBSD b/Makefile.FreeBSD index 8ffb024..0d004f4 100644 --- a/Makefile.FreeBSD +++ b/Makefile.FreeBSD @@ -16,7 +16,7 @@ LN ?= ${CC} LDFLAGS = -pthread -O -fno-strict-aliasing # -lpthreads may be reuqired on some platforms instead of -pthreads # -ldl or -lld may be required for some platforms -DCFLAGS = -fpic +DCFLAGS = -fPIC DLFLAGS = -shared DLSUFFICS = .so LIBS = diff --git a/Makefile.Linux b/Makefile.Linux index 6ca5ec7..2fcb7f7 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -13,7 +13,7 @@ CC = gcc CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER COUT = -o LN = gcc -DCFLAGS = -fpic +DCFLAGS = -fPIC LDFLAGS = -O2 -fno-strict-aliasing -pthread DLFLAGS = -shared DLSUFFICS = .ld.so diff --git a/Makefile.Solaris b/Makefile.Solaris index 8ddda1d..158ed7f 100644 --- a/Makefile.Solaris +++ b/Makefile.Solaris @@ -13,7 +13,7 @@ CFLAGS = -xO3 -c -D_SOLARIS -D_THREAD_SAFE -DGETHOSTBYNAME_R -D_REENTRANT -DNOOD COUT = -o ./ LN = cc LDFLAGS = -xO3 -DCFLAGS = -fpic +DCFLAGS = -fPIC DLFLAGS = -shared DLSUFFICS = .ld.so LIBS = -lpthread -lsocket -lnsl -lresolv -ldl diff --git a/Makefile.Solaris-gcc b/Makefile.Solaris-gcc index 5e05127..65ded9b 100644 --- a/Makefile.Solaris-gcc +++ b/Makefile.Solaris-gcc @@ -14,7 +14,7 @@ CFLAGS = -O2 -fno-strict-aliasing -c -D_SOLARIS -D_THREAD_SAFE -DGETHOSTBYNAME_R COUT = -o ./ LN = gcc LDFLAGS = -O3 -DCFLAGS = -fpic +DCFLAGS = -fPIC DLFLAGS = -shared DLSUFFICS = .ld.so LIBS = -lpthread -lsocket -lnsl -lresolv -ldl diff --git a/Makefile.openwrt-mips b/Makefile.openwrt-mips index 7a213df..3445b44 100644 --- a/Makefile.openwrt-mips +++ b/Makefile.openwrt-mips @@ -13,7 +13,7 @@ CC = mips-openwrt-linux-gcc CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER COUT = -o LN = mips-openwrt-linux-gcc -DCFLAGS = -fpic +DCFLAGS = -fPIC LDFLAGS = -O2 -fno-strict-aliasing -pthread -s DLFLAGS = -shared DLSUFFICS = .ld.so diff --git a/Makefile.unix b/Makefile.unix index 9f6ab5b..cb26a0c 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -17,7 +17,7 @@ LN = gcc LDFLAGS = -O2 -fno-strict-aliasing -pthread # -lpthreads may be reuqired on some platforms instead of -pthreads # -ldl or -lld may be required for some platforms -DCFLAGS = -fpic +DCFLAGS = -fPIC DLFLAGS = -shared DLSUFFICS = .ld.so LIBS = diff --git a/bin/.gitignore b/bin/.gitignore index 2e22986..1b5d6a9 100644 --- a/bin/.gitignore +++ b/bin/.gitignore @@ -1 +1,2 @@ -*.cfg \ No newline at end of file +*.cfg +*.old \ No newline at end of file