mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
Remove -fno-PIC check from configure and put -fPIC back at the beginning
of CFLAGS in libdha/ and vidix/drivers/. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20404 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2bf63bb484
commit
cd48432d6c
15
configure
vendored
15
configure
vendored
@ -7225,21 +7225,6 @@ if test "$_largefiles" = yes || freebsd ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echocheck "compiler support for -fno-PIC"
|
||||
if x86; then
|
||||
cat > $TMPC <<EOF
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
if cc_check -fno-PIC ; then
|
||||
CFLAGS="-fno-PIC $CFLAGS"
|
||||
echores "yes"
|
||||
else
|
||||
echores "no"
|
||||
fi
|
||||
else
|
||||
echores "only used for x86"
|
||||
fi
|
||||
|
||||
echocheck "compiler support for noexecstack"
|
||||
cat > $TMPC <<EOF
|
||||
int main(void) { return 0; }
|
||||
|
@ -29,7 +29,7 @@ SRCS=libdha.c \
|
||||
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
||||
CFLAGS = -I. -I.. $(OPTFLAGS) -fPIC
|
||||
CFLAGS = -fPIC -I. -I.. $(OPTFLAGS)
|
||||
|
||||
ifeq ($(TARGET_OS),OpenBSD)
|
||||
ifeq ($(TARGET_ARCH_X86),yes)
|
||||
|
@ -6,7 +6,7 @@ BINDIR = $(LIBDIR)/mplayer/vidix
|
||||
VIDIX_LIBS = -L../../libdha -ldha
|
||||
VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
|
||||
VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB)
|
||||
VIDIX_CFLAGS= -I. -I.. $(OPTFLAGS) -fPIC
|
||||
VIDIX_CFLAGS = -fPIC -I. -I.. $(OPTFLAGS)
|
||||
|
||||
RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128
|
||||
MGA_CRTC2_CFLAGS=$(VIDIX_CFLAGS) -DCRTC2
|
||||
|
Loading…
Reference in New Issue
Block a user