From 34337d7b764b904b7c69ec6324a26ae741f300c1 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 21 Jan 2009 13:30:07 +0000 Subject: [PATCH] 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 --- configure | 13 ++++++------- configure.in | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/configure b/configure index a4a08931..b31dfcdb 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.in b/configure.in index 8ec15638..c8760d19 100644 --- a/configure.in +++ b/configure.in @@ -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