[csw-devel] SF.net SVN: gar:[21909] csw/mgar/pkg/ilmbase/trunk/Makefile

lblume at users.sourceforge.net lblume at users.sourceforge.net
Wed Sep 11 22:03:02 CEST 2013


Revision: 21909
          http://gar.svn.sourceforge.net/gar/?rev=21909&view=rev
Author:   lblume
Date:     2013-09-11 20:03:02 +0000 (Wed, 11 Sep 2013)
Log Message:
-----------
ilmbase/trunk: Replace -pthread in the .pc file with something that works with Studio

Modified Paths:
--------------
    csw/mgar/pkg/ilmbase/trunk/Makefile

Modified: csw/mgar/pkg/ilmbase/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ilmbase/trunk/Makefile	2013-09-11 19:48:35 UTC (rev 21908)
+++ csw/mgar/pkg/ilmbase/trunk/Makefile	2013-09-11 20:03:02 UTC (rev 21909)
@@ -96,3 +96,12 @@
 CONFIGURE_ARGS += --disable-static
 
 include gar/category.mk
+
+post-install-modulated:
+	# Make -pthread option Studio-compatible
+	# The replacement comes from gcc-4.8 -dumpspecs
+	perl -i -p \
+          -e 's,-pthread,-lpthread -D_REENTRANT -D_PTHREADS,' \
+          $(DESTDIR)$(libdir)/pkgconfig/*.pc
+	@$(MAKECOOKIE)
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list