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

skayser at users.sourceforge.net skayser at users.sourceforge.net
Wed May 26 23:10:17 CEST 2010


Revision: 10008
          http://gar.svn.sourceforge.net/gar/?rev=10008&view=rev
Author:   skayser
Date:     2010-05-26 21:10:17 +0000 (Wed, 26 May 2010)

Log Message:
-----------
iperf: fix CFLAGS vs. LDFLAGS usage in src/Makefile.in

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

Modified: csw/mgar/pkg/iperf/trunk/Makefile
===================================================================
--- csw/mgar/pkg/iperf/trunk/Makefile	2010-05-26 20:46:54 UTC (rev 10007)
+++ csw/mgar/pkg/iperf/trunk/Makefile	2010-05-26 21:10:17 UTC (rev 10008)
@@ -1,10 +1,12 @@
 # Todo:
+# * Investigate 'redefined' warning messages for int types like INT64_MIN
 # * Check sf project page for patches and threads related to CPU saturation
 # * Run some real world performance tests
 # * Submit feedback upstream: 
 #   - Add AC_CHECK_FUNC or AC_SEARCH_LIBS for sched_yield() so that we get -lrt
 #   - Use PTHREAD_{LIBS,CFLAGS} to amend CFLAGS so that we get -lpthreads
 #   - Submit language linkage declarations patch for review
+#   - iperf_LDFLAGS: use LDFLAGS instead of CFLAGS
 # * Add changelog.CSW
 #
 GARNAME = iperf
@@ -50,11 +52,14 @@
 # * Get rid of gcc -Walls 
 # * LIBS: Append -lrt for sched_yield()
 # * LIBS: Append -lpthread (upstream should use $PTHREAD_{LIBS,CFLAGS} instead
+# * Use LDFLAGS for iperf_LDFLAGS instead of CFLAGS *sigh*
 pre-configure-modulated:
-	@perl -pi -e 's|-Wall||; s|\@LIBS\@|\@LIBS\@ -lrt -lpthread|' \
+	perl -pi -e 's|-Wall||; s|\@LIBS\@|\@LIBS\@ -lrt -lpthread|' \
 		$(WORKSRC)/Makefile.in \
 		$(WORKSRC)/compat/Makefile.in \
 		$(WORKSRC)/src/Makefile.in
+	gsed -i 's,^iperf_LDFLAGS = @CFLAGS@,iperf_LDFLAGS = @LDFLAGS@,' \
+		$(WORKSRC)/src/Makefile.in
 	@$(MAKECOOKIE)
 
 post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)


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