From cb6a4166b77c079d25c153a7a5f8138be5575679 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Wed, 11 Sep 2024 18:34:40 +0300 Subject: [PATCH] Use -fPIC instead of -fPIE --- Dockerfile.minimal | 2 +- Makefile.Linux | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.minimal b/Dockerfile.minimal index d108249..238de01 100644 --- a/Dockerfile.minimal +++ b/Dockerfile.minimal @@ -28,7 +28,7 @@ FROM gcc AS buildenv COPY . 3proxy RUN cd 3proxy &&\ echo "">>Makefile.Linux &&\ - echo LDFLAGS = -fPIE -O2 -fno-strict-aliasing -pthread >>Makefile.Linux &&\ + echo LDFLAGS = -fPIC -O2 -fno-strict-aliasing -pthread >>Makefile.Linux &&\ echo PLUGINS = >>Makefile.Linux &&\ echo LIBS = >>Makefile.Linux &&\ echo CFLAGS = -g -fPIC -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 -DNOPLUGINS >>Makefile.Linux &&\ diff --git a/Makefile.Linux b/Makefile.Linux index 4f3f2b3..29c19fb 100644 --- a/Makefile.Linux +++ b/Makefile.Linux @@ -14,7 +14,7 @@ CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOUR COUT = -o LN = $(CC) DCFLAGS = -LDFLAGS = -fPIE -O2 -fno-strict-aliasing -pthread +LDFLAGS = -fPIC -O2 -fno-strict-aliasing -pthread DLFLAGS = -shared DLSUFFICS = .ld.so # -lpthreads may be reuqired on some platforms instead of -pthreads