mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
Don't build the znc binary with position independent code
This is only needed for code that ends up in a shared object which is the module code for us. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1338 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -2465,13 +2465,6 @@ case "${host_os}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# cygwin
|
||||
# warning: -fPIC ignored for target (all code is position independent)
|
||||
|
||||
if test -z "$ISCYGWIN" ; then
|
||||
appendCXX -fPIC
|
||||
fi
|
||||
|
||||
|
||||
# Check whether --with-openssl was given.
|
||||
if test "${with_openssl+set}" = set; then
|
||||
@@ -3082,6 +3075,12 @@ echo "$as_me: error: could not find dlopen. Try --disable-modules" >&2;}
|
||||
appendMod -mimpure-text
|
||||
fi
|
||||
|
||||
# cygwin doesn't know -fPIC, everything else needs it (for modules)
|
||||
# warning: -fPIC ignored for target (all code is position independent)
|
||||
if test -z "$ISCYGWIN" ; then
|
||||
appendMod -fPIC
|
||||
fi
|
||||
|
||||
if test -z "$ISDARWIN"; then
|
||||
MODLINK="-shared"
|
||||
else
|
||||
|
||||
+6
-7
@@ -61,13 +61,6 @@ case "${host_os}" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# cygwin
|
||||
# warning: -fPIC ignored for target (all code is position independent)
|
||||
|
||||
if test -z "$ISCYGWIN" ; then
|
||||
appendCXX -fPIC
|
||||
fi
|
||||
|
||||
AC_ARG_WITH( [openssl],
|
||||
AS_HELP_STRING([--with-openssl=DIR], [openssl's installation prefix]),
|
||||
[OPENSSL=$withval],)
|
||||
@@ -184,6 +177,12 @@ if test "$MODULES" = "yes"; then
|
||||
appendMod -mimpure-text
|
||||
fi
|
||||
|
||||
# cygwin doesn't know -fPIC, everything else needs it (for modules)
|
||||
# warning: -fPIC ignored for target (all code is position independent)
|
||||
if test -z "$ISCYGWIN" ; then
|
||||
appendMod -fPIC
|
||||
fi
|
||||
|
||||
if test -z "$ISDARWIN"; then
|
||||
MODLINK="-shared"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user