summaryrefslogtreecommitdiff
diff options
authorMike Miller <[email protected]>2019-10-10 11:06:42 -0700
committerJoshua Judson Rosen <[email protected]>2021-02-08 01:38:18 -0500
commit6c815875a42eca24548870422530e42e708719ee (patch)
tree9723669b1afc1aaf50ff1956be33930fda5a0717
parent2ba5d5ece6a8d8ef6ee107deced6c77a8b3151cd (diff)
downloadgnurobots-master.tar.gz
build: correct use of LDADD vs. LDFLAGS to prevent link errorsHEADmaster
Use the automake variable gnurobots_LDADD to append libraries to the link command. Libraries must appear after object files for external symbols to be resolved by the linker. Guile defines both GUILE_LDFLAGS and GUILE_LIBS, so include each of them in the corresponding automake variable. Fixes: <https://savannah.gnu.org/bugs/?57036>
-rw-r--r--src/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9373603..76d0999 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -29,5 +29,6 @@ AM_CFLAGS = -Wall \
gnurobots_SOURCES = main.c api.c map.c grobot.c \
ui-window.c ui-cmdwin.c ui-arena.c
-gnurobots_LDFLAGS = $(GUILE_LDFLAGS) $(GTHREAD2_LIBS) \
+gnurobots_LDFLAGS = $(GUILE_LDFLAGS)
+gnurobots_LDADD = $(GUILE_LIBS) $(GTHREAD2_LIBS) \
$(GTK2_LIBS) $(VTE_LIBS) -lutil