Skip to content

Commit

Permalink
try -fPIC instead of -fPIE as required by gcc 5 with qt reduce reloca…
Browse files Browse the repository at this point in the history
…tions.
  • Loading branch information
tsteven4 committed Aug 28, 2015
1 parent 2fca587 commit fdaf94f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gpsbabel/configure
Original file line number Diff line number Diff line change
Expand Up @@ -5065,7 +5065,7 @@ if ac_fn_cxx_try_compile "$LINENO"; then :
$as_echo "no" >&6; }
else
OCXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -fPIE"
CXXFLAGS="$CXXFLAGS -fPIC"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand All @@ -5076,7 +5076,7 @@ _ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
CFLAGS="$CFLAGS -fPIE"
CFLAGS="$CFLAGS -fPIC"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
$as_echo "unknown" >&6; }
Expand Down
4 changes: 2 additions & 2 deletions gpsbabel/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ case "$target" in
}])],
[AC_MSG_RESULT(no)],
[OCXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -fPIE"
CXXFLAGS="$CXXFLAGS -fPIC"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <QtCore/QString>
void f(void) {
}])],
[AC_MSG_RESULT(yes)
CFLAGS="$CFLAGS -fPIE"],
CFLAGS="$CFLAGS -fPIC"],
[AC_MSG_RESULT(unknown)
CXXFLAGS="$OCXXFLAGS"]
)]
Expand Down

0 comments on commit fdaf94f

Please sign in to comment.