Ticket #32433: patch-makefile.diff
File patch-makefile.diff, 1.4 KB (added by rudloff@…, 13 years ago) |
---|
-
makefile
old new 121 121 # Linux options gcc 4.2.2 122 122 #CPU_FLAGS = -fPIC -O0 -g 123 123 #CPU_FLAGS = -O2 -fsingle-precision-constant 124 CPU_FLAGS = -O2 -g - fpic -msse -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant124 CPU_FLAGS = -O2 -g -msse -msse2 -ffloat-store -ffast-math -funsafe-math-optimizations -fsingle-precision-constant 125 125 126 126 #FLAGS = -c -Wall -Wno-strict-aliasing -D_LINUX_VER -ffloat-store -ffast-math -fsingle-precision-constant $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH) 127 FLAGS = -c -Wall -Wno-strict-aliasing -D_ LINUX_VER $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH)127 FLAGS = -c -Wall -Wno-strict-aliasing -D_MAC_VER $(CPU_FLAGS) -I$(DG_INCLUDED_PATH) -I$(DG_INCLUDED_PHYSICS_PATH) 128 128 129 129 130 130 .SUFFIXES : .o .cpp … … 145 145 libNewton.a : $(DG_OBJ_FILES) 146 146 ar r $@ $? 147 147 # strip -g -S -d -v libNewton.a -olibNewton.a 148 cp libNewton.a ../../../packages/$(PLATFORM)/libNewton.a149 cp ../../source/newton/Newton.h ../../../packages/$(PLATFORM)/Newton.h150 gcc -shared -Wl,-soname,libNewton.so $? -o libNewton.so151 cp libNewton.so ../../../packages/$(PLATFORM)/libNewton.so152 148 # sudo cp libNewton.so /usr/lib 153 149 154 150