- RPM_OPT_FLAGS are used for compiling
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Sat, 27 Nov 1999 17:52:06 +0000 (17:52 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Sat, 27 Nov 1999 17:52:06 +0000 (17:52 +0000)
- added "-k -j $SMP" to the make command line when SMP is available

GiNaC.spec.in

index 094c3a6..edd2baa 100644 (file)
@@ -28,8 +28,13 @@ numeric applications, graphical interfaces, etc.) under one roof.
 %setup
 
 %build
-./configure --prefix=%prefix
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
+if [ "$SMP" != "" ]; then
+  (make "MAKE=make -k -j $SMP"; exit 0)
+  make
+else
+  make
+fi
 
 %install
 rm -rf $RPM_BUILD_ROOT