]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - dev-util/elftoaout/files/elftoaout-build-rules.patch
dev-util/elftoaout: New package.
[gentoo-draconx.git] / dev-util / elftoaout / files / elftoaout-build-rules.patch
diff --git a/dev-util/elftoaout/files/elftoaout-build-rules.patch b/dev-util/elftoaout/files/elftoaout-build-rules.patch
new file mode 100644 (file)
index 0000000..e7ec46d
--- /dev/null
@@ -0,0 +1,18 @@
+diff --git a/elftoaout-2.3/Makefile b/elftoaout-2.3/Makefile
+index 7dc3529..64d8ff6 100644
+--- a/elftoaout-2.3/Makefile
++++ b/elftoaout-2.3/Makefile
+@@ -3,8 +3,11 @@ CFLAGS = -O2 -Wall
+ all: elftoaout
+-elftoaout: elftoaout.c
+-      $(CC) $(CFLAGS) -o elftoaout elftoaout.c
++elftoaout: elftoaout.o
++      $(CC) $(CFLAGS) $(LDFLAGS) -o elftoaout elftoaout.o
++
++.c.o:
++      $(CC) $(CFLAGS) -c $<
+ install: elftoaout
+       install -m 0755 -s elftoaout /usr/bin/elftoaout