Mercurial > mplayer.hg
diff configure @ 29835:f1b71fa008e8
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.
author | reimar |
---|---|
date | Tue, 10 Nov 2009 13:08:36 +0000 |
parents | 3ba8ad9fef27 |
children | 77b9f0557384 |
line wrap: on
line diff
--- a/configure Tue Nov 10 11:51:22 2009 +0000 +++ b/configure Tue Nov 10 13:08:36 2009 +0000 @@ -2580,14 +2580,13 @@ 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"