tReplaced nasty hack, overriding the LIBTOOL variable in the Makefile, with another nasty hack, overriding the LINK variable instead. This has the advantage that the external "fakelibtool.sh" script is no longer needed. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c912865e6ab32c890c7cf76d4293cc1790dc1d45
(DIR) parent 509602a28911593055ddfce22972b3736b8271b1
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Fri, 24 May 2002 11:36:24 +0000
Replaced nasty hack, overriding the LIBTOOL variable in the Makefile,
with another nasty hack, overriding the LINK variable instead. This has
tthe advantage that the external "fakelibtool.sh" script is no longer needed.
Diffstat:
M src/Makefile.am | 8 ++++----
D src/fakelibtool.sh | 4 ----
2 files changed, 4 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/src/Makefile.am b/src/Makefile.am
t@@ -1,9 +1,9 @@
-# Nasty hack; there seems to be no way of disabling libtool for the link
-# of the main executable...
+# Nasty hack; there seems to be no other way of disabling libtool for the
+# link of the main executable...
if PLUGINS
-LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
else
-LIBTOOL = ./fakelibtool.sh
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
endif
if GUI_CLIENT
(DIR) diff --git a/src/fakelibtool.sh b/src/fakelibtool.sh
t@@ -1,4 +0,0 @@
-#!/bin/sh
-# Discard the --mode=xxx argument to libtool, and then run the original command
-shift
-exec $*