| 1 |
Description: fix build with ld --as-needed |
| 2 |
With the linker flag --as-needed libraries must be placed |
| 3 |
behind objects needing their symbols on the commandline. |
| 4 |
Author: Julian Taylor <[email protected]> |
| 5 |
Forwarded: yes |
| 6 |
|
| 7 |
--- a/src/Makefile.in |
| 8 |
+++ b/src/Makefile.in |
| 9 |
@@ -77,10 +77,10 @@ |
| 10 |
all: stamp-depend config.h istgt istgtcontrol |
| 11 |
|
| 12 |
istgt: $(ISTGT) |
| 13 |
- $(CC) $(LDFLAGS) $(LIBS) -o $@ $(ISTGT) |
| 14 |
+ $(CC) $(LDFLAGS) -o $@ $(ISTGT) $(LIBS) |
| 15 |
|
| 16 |
istgtcontrol: $(ISTGTCONTROL) |
| 17 |
- $(CC) $(LDFLAGS) $(LIBS) -o $@ $(ISTGTCONTROL) |
| 18 |
+ $(CC) $(LDFLAGS) -o $@ $(ISTGTCONTROL) $(LIBS) |
| 19 |
|
| 20 |
install: install-dirs |
| 21 |
install -c -m 0755 istgt $(DESTDIR)$(sbindir) |