Commit 05f7c9a8 authored by philipjsg's avatar philipjsg

Try to get this to build on more platforms (especially Darwin)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1278 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5fc12ecc
...@@ -48,9 +48,6 @@ ifeq ($(BUILD_VHOOK),yes) ...@@ -48,9 +48,6 @@ ifeq ($(BUILD_VHOOK),yes)
VHOOK=videohook VHOOK=videohook
INSTALLVHOOK=install-vhook INSTALLVHOOK=install-vhook
CLEANVHOOK=clean-vhook CLEANVHOOK=clean-vhook
ifneq ($(CONFIG_DARWIN),yes)
LDFLAGS += -rdynamic
endif
endif endif
OBJS = ffmpeg.o ffserver.o OBJS = ffmpeg.o ffserver.o
......
...@@ -126,6 +126,9 @@ test -f /usr/local/include/inttypes.h || \ ...@@ -126,6 +126,9 @@ test -f /usr/local/include/inttypes.h || \
echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \ echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
"/usr/include/inttypes.h !!!" "/usr/include/inttypes.h !!!"
;; ;;
Linux)
LDFLAGS=-rdynamic
;;
*) ;; *) ;;
esac esac
...@@ -472,6 +475,7 @@ echo "STRIP=$strip" >> config.mak ...@@ -472,6 +475,7 @@ echo "STRIP=$strip" >> config.mak
echo "OPTFLAGS=$CFLAGS" >> config.mak echo "OPTFLAGS=$CFLAGS" >> config.mak
echo "LDFLAGS=$LDFLAGS" >> config.mak echo "LDFLAGS=$LDFLAGS" >> config.mak
echo "SHFLAGS=$SHFLAGS" >> config.mak echo "SHFLAGS=$SHFLAGS" >> config.mak
echo "LDFLAGS=$LDFLAGS" >> config.mak
if test "$cpu" = "x86" ; then if test "$cpu" = "x86" ; then
echo "TARGET_ARCH_X86=yes" >> config.mak echo "TARGET_ARCH_X86=yes" >> config.mak
echo "#define ARCH_X86 1" >> $TMPH echo "#define ARCH_X86 1" >> $TMPH
......
include ../config.mak include ../config.mak
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I.. -I../libavformat -I../libavcodec -DHAVE_AV_CONFIG_H VPATH=$(SRC_PATH)/vhook
CFLAGS=-fPIC $(OPTFLAGS) -g -Wall -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
ifeq ($(CONFIG_DARWIN),yes) ifeq ($(CONFIG_DARWIN),yes)
LDFLAGS+=-bundle -flat_namespace -undefined suppress SHFLAGS+=-bundle -flat_namespace -undefined suppress
else
LDFLAGS+=-shared
endif endif
HOOKS=null.so fish.so HOOKS=null.so fish.so
...@@ -19,11 +19,11 @@ install: ...@@ -19,11 +19,11 @@ install:
install -s -m 755 $(HOOKS) $(INSTDIR) install -s -m 755 $(HOOKS) $(INSTDIR)
imlib2.so: imlib2.o imlib2.so: imlib2.o
$(CC) -g -o $@ $(LDFLAGS) $< -lImlib2 $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2
rm $< rm $<
%.so: %.o %.so: %.o
$(CC) -g -o $@ $(LDFLAGS) $< $(CC) -g -o $@ $(SHFLAGS) $<
%.html: %.texi %.html: %.texi
texi2html -monolithic -number $< texi2html -monolithic -number $<
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <sys/time.h> #include <time.h>
#include <stdio.h> #include <stdio.h>
#include <dirent.h> #include <dirent.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment