diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-04 15:21:02 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-04 15:21:02 (GMT) |
commit | 0820bcb640e9030a99a4c47119df6b9305e632da (patch) | |
tree | e040502e0c5a058e8544f5235e99c04d054c0eab /src | |
parent | ad968e32b30ee6262574bc3e02b20d5b117f5b88 (diff) | |
download | fluxbox-0820bcb640e9030a99a4c47119df6b9305e632da.zip fluxbox-0820bcb640e9030a99a4c47119df6b9305e632da.tar.bz2 |
Fix build-system: use xxx_LDADD instead of xxx_LDFLAGS
xxx_LDFLAGS place the libraries like '-lX11' or '-lXft' at the beginning of
the linker command. Some systems were not able to handle the situation and
this lead to a lot of unresolved symbols. Reading the documentation of
automake:
... you can use LDADD to do so. This variable is used to specify
additional objects or libraries to link with; it is inappropriate for
specifying specific linker flags, you should use AM_LDFLAGS for this
purpose.
In addition we link against -lm in order to satisfy symbols refering to 'cos'
and 'sin'.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makemodule.am | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Makemodule.am b/src/Makemodule.am index c9e41ec..2fd5891 100644 --- a/src/Makemodule.am +++ b/src/Makemodule.am | |||
@@ -25,6 +25,8 @@ | |||
25 | BUILT_SOURCES = src/defaults.hh src/defaults.cc | 25 | BUILT_SOURCES = src/defaults.hh src/defaults.cc |
26 | CONFIG_CLEAN_FILES = src/defaults.hh src/defaults.cc | 26 | CONFIG_CLEAN_FILES = src/defaults.hh src/defaults.cc |
27 | 27 | ||
28 | LDADD = libFbTk.a src/defaults.$(OBJEXT) | ||
29 | |||
28 | bin_PROGRAMS += fluxbox | 30 | bin_PROGRAMS += fluxbox |
29 | 31 | ||
30 | src/defaults.hh: | 32 | src/defaults.hh: |
@@ -138,13 +140,13 @@ fluxbox_CPPFLAGS = \ | |||
138 | -I$(fbtk_incdir) \ | 140 | -I$(fbtk_incdir) \ |
139 | -I$(nls_incdir) | 141 | -I$(nls_incdir) |
140 | 142 | ||
141 | fluxbox_LDFLAGS = \ | 143 | fluxbox_LDADD = \ |
144 | $(LDADD) \ | ||
142 | $(FONTCONFIG_LIBS) \ | 145 | $(FONTCONFIG_LIBS) \ |
143 | $(FREETYPE2_LIBS) \ | 146 | $(FREETYPE2_LIBS) \ |
144 | $(FRIBIDI_LIBS) \ | 147 | $(FRIBIDI_LIBS) \ |
145 | $(IMLIB2_LIBS) \ | 148 | $(IMLIB2_LIBS) \ |
146 | $(RANDR_LIBS) \ | 149 | $(RANDR_LIBS) \ |
147 | $(X11_LIBS) \ | ||
148 | $(XEXT_LIBS) \ | 150 | $(XEXT_LIBS) \ |
149 | $(XFT_LIBS) \ | 151 | $(XFT_LIBS) \ |
150 | $(XINERAMA_LIBS) \ | 152 | $(XINERAMA_LIBS) \ |
@@ -152,7 +154,8 @@ fluxbox_LDFLAGS = \ | |||
152 | $(XRENDER_LIBS) \ | 154 | $(XRENDER_LIBS) \ |
153 | $(X_EXTRA_LIBS) \ | 155 | $(X_EXTRA_LIBS) \ |
154 | $(X_LIBS) \ | 156 | $(X_LIBS) \ |
155 | $(X_PRE_LIBS) | 157 | $(X_PRE_LIBS) \ |
158 | $(X11_LIBS) | ||
156 | 159 | ||
157 | fluxbox_SOURCES = \ | 160 | fluxbox_SOURCES = \ |
158 | src/AlphaMenu.cc \ | 161 | src/AlphaMenu.cc \ |
@@ -272,4 +275,3 @@ fluxbox_SOURCES = \ | |||
272 | ${SLIT_SOURCE} \ | 275 | ${SLIT_SOURCE} \ |
273 | ${TOOLBAR_SOURCE} | 276 | ${TOOLBAR_SOURCE} |
274 | 277 | ||
275 | LDADD = libFbTk.a src/defaults.$(OBJEXT) | ||