public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-sound/substract_wave/files: substract_wave-0.3-Makefile.patch substract_wave-0.3.diff
@ 2009-05-11 20:21 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2009-05-11 20:21 UTC (permalink / raw
  To: gentoo-commits

ssuominen    09/05/11 20:21:32

  Added:                substract_wave-0.3-Makefile.patch
  Removed:              substract_wave-0.3.diff
  Log:
  Fix Makefile to work with -Wl,--as-needed wrt #240484, thanks to Diego E. Pettenò.
  (Portage version: 2.1.6.13/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/substract_wave/files/substract_wave-0.3-Makefile.patch?rev=1.1&content-type=text/plain

Index: substract_wave-0.3-Makefile.patch
===================================================================
diff -ur substract_wave-0.3.orig/Makefile substract_wave-0.3/Makefile
--- substract_wave-0.3.orig/Makefile	2005-10-06 17:23:42.000000000 +0300
+++ substract_wave-0.3/Makefile	2009-05-11 23:19:30.000000000 +0300
@@ -1,27 +1,22 @@
-#CC=gcc
-#CC=/usr/local/bin/gcc
-
-
-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+CC ?= gcc
+CFLAGS += -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
+LIBRARY = -lm
 
 .c.o:
-	gcc $(CFLAGS) -c $<
+	$(CC) $(CFLAGS) -c $<
 
-OBJECT =\
-substract_wave.o
+OBJECT = substract_wave.o
 
 a.out : $(OBJECT)
-	gcc -o substract_wave  $(OBJECT) $(LIBRARY)
+	$(CC) $(LDFLAGS) $(CFLAGS) $(OBJECT) $(LIBRARY) -o substract_wave
 		
-# DEPENDENCIES
 substract_wave.o : substract_wave.c substract_wave.h wave_header.h
 
-install: 
-	cp substract_wave  /usr/local/bin/
-
-install.man:
-	cp substract_wave.man /usr/local/man/man1/substract_wave.1
+install:
+	mkdir -p $(DESTDIR)/usr/bin
+	cp substract_wave $(DESTDIR)/usr/bin
+	mkdir -p $(DESTDIR)/usr/share/man/man1
+	cp substract_wave.man $(DESTDIR)/usr/share/man/man1/substract_wave.1
 
 clean:
 	rm *.o
-






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-11 20:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-11 20:21 [gentoo-commits] gentoo-x86 commit in media-sound/substract_wave/files: substract_wave-0.3-Makefile.patch substract_wave-0.3.diff Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox