summaryrefslogtreecommitdiff
blob: 66b32bbc17c7797be499ffcf2a9678e83fa563e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/Makefile.in b/Makefile.in
index 328016c..f8cc6aa 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -36,7 +36,7 @@ LIBS= @LIBS@
 all:	$(TARGET)
 
 $(TARGET):	$(TARGET).c config.h
-	$(CC) $(CFLAGS) -o $@ $(@:%=%.c) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(@:%=%.c) $(LIBS)
 
 rebuild:	cleanall $(TARGET)
 
@@ -59,9 +59,10 @@ cleanall:	clean
 mrproper:	cleanall
 distclean:	cleanall
 
+BUILD_ROOT=$(DESTDIR)
 install:
 	$(INSTALL) -d -m 755 $(BUILD_ROOT)$(BIN_DIR)
-	$(INSTALL) -m 755 -s $(TARGET) $(BUILD_ROOT)$(BIN_DIR)
+	$(INSTALL) -m 755 $(TARGET) $(BUILD_ROOT)$(BIN_DIR)
 
 tarball:
 	$(INSTALL) -d -m 755 ./$(PACKAGE_NAME)-$(PACKAGE_VERSION)