aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 13:08:36 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-10 13:08:36 +0000
commit42ec82c1e53a7ee17bc4855acf3d83b2cd7b7a00 (patch)
treed484f298c3bd7d2a42de2bf69f91faa1f63d305b /configure
parent4ca9381eaefeedbbd22f31eaa3ce90221ed69d53 (diff)
Use configure code to define PIC instead of duplicating the check in mangle.h.
While it is currently not necessary, it might be a good idea to move this outside the x86-only block in configure, as well as adding -pie to LDFLAGS. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29877 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 132ec7efea..9137544399 100755
--- a/configure
+++ b/configure
@@ -2580,14 +2580,13 @@ echocheck "PIC"
pic=no
cat > $TMPC << EOF
int main(void) {
-// keep in sync with mangle.h and libavutil/internal.h
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
#error PIC not enabled
#endif
return 0;
}
EOF
-cc_check && pic=yes
+cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
echores $pic
echocheck "yasm"