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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu Nov 24 17:41:38 CET 2011


Revision: 16254
          http://gar.svn.sourceforge.net/gar/?rev=16254&view=rev
Author:   dmichelsen
Date:     2011-11-24 16:41:37 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
libjpeg62/trunk: Fix shared libraries

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

Modified: csw/mgar/pkg/libjpeg62/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libjpeg62/trunk/Makefile	2011-11-24 16:35:16 UTC (rev 16253)
+++ csw/mgar/pkg/libjpeg62/trunk/Makefile	2011-11-24 16:41:37 UTC (rev 16254)
@@ -19,8 +19,16 @@
 
 BUILD64 = 1
 
+# Ok, here comes a good one: a dynamic library is only generated when warnings are suppressed.
+# This is because in ltconfig the test to look if -KPIC actually works detects if there are
+# any warnings printed because some braindead compilers generate an .o even though -KPIC is
+# ignored. As the test tries to compile an empty file Sun Studio just prints a warning line
+# leading to disabling of the detection. Turning warnings off therefore leads to turning
+# shared libs on.
+EXTRA_CFLAGS += -w
+
 CONFIGURE_ARGS += --enable-shared=yes
-#CONFIGURE_ARGS += $(DIRPATHS)
+CONFIGURE_ARGS += $(DIRPATHS)
 
 INSTALL_OVERRIDE_DIRS += prefix
 INSTALL_OVERRIDE_DIRS += exec_prefix

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