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