summaryrefslogtreecommitdiff
path: root/app-admin/sysrqd/files/sysrqd-14-fix-build-system.patch
blob: 2668c3c0c4910d370ebbc901542dfadf093b5d98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/Makefile
+++ b/Makefile
@@ -5,15 +5,15 @@
         -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
         -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
         -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn \
-        -std=gnu99 -pipe -DSYSRQD_VERSION="\"$(VERSION)\"" -O3
+        -std=gnu99
+CPPFLAGS += -DSYSRQD_VERSION="\"$(VERSION)\""
 
 SBINDIR=$(DESTDIR)/usr/sbin
 #MANDIR=$(DESTDIR)/usr/share/man/man1
 INSTALL = install
 #MAN=sysrqd.1
 
-$(BIN): $(O)
-	$(CC) $(LDFLAGS) -o $(BIN) $(O)
+all: $(BIN)
 
 install: $(BIN)
 	$(INSTALL) -d -m 755 $(SBINDIR)