Created
November 30, 2011 02:09
-
-
Save mkb218/1407663 to your computer and use it in GitHub Desktop.
32-bit build patch for echoprint-codegen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Makefile b/src/Makefile | |
index 630efb4..1c9b821 100644 | |
--- a/src/Makefile | |
+++ b/src/Makefile | |
@@ -2,8 +2,8 @@ UNAME := $(shell uname -s) | |
CXX=g++ | |
CC=gcc | |
#OPTFLAGS=-g -O0 | |
-OPTFLAGS=-O3 -DBOOST_UBLAS_NDEBUG -DNDEBUG | |
-CXXFLAGS=-Wall -I/usr/local/include/boost-1_35 `taglib-config --cflags` -fPIC $(OPTFLAGS) | |
+OPTFLAGS=-O3 -DBOOST_UBLAS_NDEBUG -DNDEBUG -arch i386 | |
+CXXFLAGS=-Wall -I/usr/local/include/boost-1_35 `taglib-config --cflags` -fPIC $(OPTFLAGS) | |
CFLAGS=-Wall -fPIC $(OPTFLAGS) | |
LDFLAGS=`taglib-config --libs` -lz -lpthread $(OPTFLAGS) | |
@@ -21,7 +21,7 @@ MODULES = $(MODULES_LIB) Metadata.o | |
all: libcodegen echoprint-codegen | |
libcodegen: $(MODULES_LIB) | |
- $(CXX) -shared -fPIC -o libcodegen.so $(MODULES_LIB) -lz | |
+ $(CXX) $(CXXFLAGS) -shared -fPIC -o libcodegen.so $(MODULES_LIB) -lz | |
ifeq ($(UNAME),Darwin) | |
libtool -dynamic -flat_namespace -install_name libcodegen.4.1.1.dylib -lSystem -compatibility_version 4.1 -macosx_version_min 10.6 \ | |
-current_version 4.1.1 -o libcodegen.4.1.1.dylib -undefined suppress \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment