Fix the PIE test in configure. opus-tools is compiled with PIE anyway,

so this is just a cosmetic change. Reported by and ok juanfra@
This commit is contained in:
naddy 2016-01-27 12:04:06 +00:00
parent 1258f0a775
commit a524d64898

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-configure,v 1.1 2016/01/27 12:04:06 naddy Exp $
--- configure.orig Thu Jun 12 02:11:26 2014
+++ configure Tue Jan 26 17:32:20 2016
@@ -6319,14 +6319,14 @@ if test "$enable_pie" = "yes"; then :
saved_CFLAGS="$CFLAGS"
saved_LDFLAGS="$LDFLAGS"
saved_LIBS="$LIBS"
- CFLAGS="$CFLAGS -fPIE"
+ CFLAGS="$CFLAGS $OPUS_CFLAGS -fPIE"
LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
LIBS="$LIBS $OPUS_LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIE support" >&5
$as_echo_n "checking for PIE support... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <opus/opus.h>
+#include <opus.h>
int
main ()
{