summaryrefslogtreecommitdiff
path: root/irc/unreal/files/patch-configure.ac
blob: c7b3f44e17fbe062dc644b3d1bfbe6d1a38e8dc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- configure.ac	2013-11-24 20:24:26.000000000 +0100
+++ configure.ac	2014-02-27 14:02:58.916469490 +0100
@@ -107,7 +107,7 @@
 ])])
 
 hold_cflags=$CFLAGS
-CFLAGS="$CFLAGS -export-dynamic"
+CFLAGS="$CFLAGS -Wl,-export-dynamic"
 AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [
 AC_TRY_LINK(, [int i];, ac_cv_export_dynamic=yes, ac_cv_export_dynamic=no)])
 if test "$ac_cv_export_dynamic" = "no"; then
@@ -116,7 +116,7 @@
 
 AC_CACHE_CHECK(for compiler option to produce PIC,ac_cv_pic,[
 if test "$ac_cv_prog_gcc" = "yes"; then
-	ac_cv_pic="-fPIC -DPIC -shared"
+	ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared"
 	case `uname -s` in
 		Darwin*[)]
 		ac_cv_pic="-bundle -flat_namespace -undefined suppress"