PLD-doc: devel-hints-en.txt - Passing defines and libs in make

matkor matkor at pld-linux.org
Sat Jun 5 00:20:42 CEST 2010


Author: matkor                       Date: Fri Jun  4 22:20:41 2010 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
- Passing defines and libs in make

---- Files affected:
PLD-doc:
   devel-hints-en.txt (1.45 -> 1.46) 

---- Diffs:

================================================================
Index: PLD-doc/devel-hints-en.txt
diff -u PLD-doc/devel-hints-en.txt:1.45 PLD-doc/devel-hints-en.txt:1.46
--- PLD-doc/devel-hints-en.txt:1.45	Fri Jun  4 08:43:04 2010
+++ PLD-doc/devel-hints-en.txt	Sat Jun  5 00:20:36 2010
@@ -337,6 +337,25 @@
 -lqt must be changed to -lqt-mt (using some configure option, environment
 variable, patch or sed).
 
+If any defines are missing during compilation they always can be defined
+as %{specflags} and passed with %{__make}:
+
+%define specflags -DCOIN_INTERNAL -DCOIN_DEBUG=0
+
+%{__make} \
+	  CFLAGS="%{rpmcflags} %{specflags}" \
+	  CPPFLAGS="%{rpmcppflags} %{specflags}" \
+
+When missing symbols are detected:
+Unresolved symbols found in: 
+/home/users/matkor/tmp/Coin-3.1.3-root-matkor/usr/lib/libCoin.so.60.1.3  
+glRasterPos2f
+(...) 
+Library containing definiotions can be found by:
+grep glRasterPos2f /usr/lib{,64}/*.so
+And again added to %{__make}:
+    	  LDFLAGS="%{rpmldflags} -ldl -lGL -lX11 -lgthread"
+
 Installation section (%install):
 This one serves for the commands that install what has been previously
 built in the build section to the $RPM_BUILD_ROOT directory. It should
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/devel-hints-en.txt?r1=1.45&r2=1.46&f=u



More information about the pld-cvs-commit mailing list