From: prigaux Date: Thu, 22 Feb 2007 18:09:52 +0000 (+0000) Subject: Debug Linux PPC build, send correct -D for Indeaness X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2a491c4b050cecd079f40c0833ae9d414598f32;p=handbrake Debug Linux PPC build, send correct -D for Indeaness git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.8.0_beta2_5.1@401 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/Makefile.config b/Makefile.config index b1e0f9c09..a77c707ac 100644 --- a/Makefile.config +++ b/Makefile.config @@ -1,2 +1,9 @@ HB_BUILD = $(shell date "+%Y%m%d")00 HB_VERSION = "0.8.0b2" +HB_DEFPPC = $(shell uname -a | grep ppc > /dev/null ; echo RES$$?) +ifeq ($(HB_DEFPPC), RES0) +HB_DEFPPC = "-DWORDS_BIGENDIAN" +else +HB_DEFPPC = " " +endif + diff --git a/libhb/Makefile b/libhb/Makefile index 0ab218bdb..72dd359fd 100644 --- a/libhb/Makefile +++ b/libhb/Makefile @@ -17,7 +17,7 @@ ifeq ($(SYSTEM),NetBSD) endif ifeq ($(SYSTEM),Linux) - SYSDEF = -DSYS_LINUX + SYSDEF = -DSYS_LINUX $(HB_DEFPPC) LDFLAGS += -lpthread -lm -ldl endif @@ -60,6 +60,7 @@ ifeq ($(SYSTEM),CYGWIN_NT-5.1) all: libhb.a libhb.dll else all: libhb.a libhb.so + endif libhb.a: $(OBJS)