summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHeliodoro Tammaro <helio@interactives.org>2002-08-30 00:05:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-08-30 00:05:28 +0000
commita43bd1d71589d9350c7b2585376c1da0ea229310 (patch)
tree638596ca89be09213fc0a37626fa1959278b2c0f /Makefile
parent252f3975090f791acc0364e10e096fbeac6645cb (diff)
downloadffmpeg-a43bd1d71589d9350c7b2585376c1da0ea229310.tar.gz
patch by Heliodoro Tammaro <helio at interactives dot org>
- configures/builds on all darwin versions - ffserver builds on darwin (if you have the extra libraries) - builds correctly (again) on non-darwin ppc (no -faltivec in gcc-3.2) Originally committed as revision 880 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8d2d7113ca..19d81d9e6c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,10 @@ VPATH=$(SRC_PATH)
CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libav -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
ifeq ($(CONFIG_DARWIN),yes)
LDFLAGS+= -g -d
+FFSLDFLAGS= -Wl,-bind_at_load
else
LDFLAGS+= -g -Wl,--warn-common
+FFSLDFLAGS= -Wl,-E
endif
ifeq ($(TARGET_GPROF),yes)
@@ -53,7 +55,8 @@ ffmpeg$(EXE): ffmpeg_g$(EXE)
$(STRIP) -o $@ $<
ffserver$(EXE): ffserver.o $(DEP_LIBS)
- $(CC) $(LDFLAGS) -Wl,-E -o $@ ffserver.o -L./libavcodec -L./libav \
+ $(CC) $(LDFLAGS) $(FFSLDFLAGS) \
+ -o $@ ffserver.o -L./libavcodec -L./libav \
-lavformat -lavcodec -ldl $(EXTRALIBS)
ffplay: ffmpeg$(EXE)