Mercurial > mplayer.hg
comparison configure @ 20388:9e8d9b93639c
Remove -fno-PIC check from configure and put -fPIC back at the beginning
of CFLAGS in libdha/ and vidix/drivers/.
author | diego |
---|---|
date | Mon, 23 Oct 2006 10:02:21 +0000 |
parents | 2760bbeafbed |
children | 23b59f30071f |
comparison
equal
deleted
inserted
replaced
20387:cb8e0db81972 | 20388:9e8d9b93639c |
---|---|
7223 # dvdread support requires this (for off64_t) | 7223 # dvdread support requires this (for off64_t) |
7224 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" | 7224 CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE" |
7225 fi | 7225 fi |
7226 fi | 7226 fi |
7227 | 7227 |
7228 echocheck "compiler support for -fno-PIC" | |
7229 if x86; then | |
7230 cat > $TMPC <<EOF | |
7231 int main(void) { return 0; } | |
7232 EOF | |
7233 if cc_check -fno-PIC ; then | |
7234 CFLAGS="-fno-PIC $CFLAGS" | |
7235 echores "yes" | |
7236 else | |
7237 echores "no" | |
7238 fi | |
7239 else | |
7240 echores "only used for x86" | |
7241 fi | |
7242 | |
7243 echocheck "compiler support for noexecstack" | 7228 echocheck "compiler support for noexecstack" |
7244 cat > $TMPC <<EOF | 7229 cat > $TMPC <<EOF |
7245 int main(void) { return 0; } | 7230 int main(void) { return 0; } |
7246 EOF | 7231 EOF |
7247 if cc_check -Wl,-z,noexecstack ; then | 7232 if cc_check -Wl,-z,noexecstack ; then |