blob: 4c3957e7e42eec086289172f3337d5cec082b792 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Description: use --as-needed linker flag to avoid unnecessary dependencies
Author: Dmitry Borisyuk <q1werty@i.com.ua>
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@
TARGET = fbxkb
$(TARGET): $(OBJ)
- $(CC) $(LDFLAGS) $(LIBS) $(OBJ) -o $@
+ $(CC) $(LDFLAGS) $(OBJ) -Wl,--as-needed $(LIBS) -o $@
all: $(TARGET)
|