$NetBSD: patch-ae,v 1.8 2010/04/09 13:35:42 obache Exp $

--- fluid/Makefile.orig	2008-12-29 20:21:29.000000000 +0000
+++ fluid/Makefile
@@ -57,7 +57,7 @@ all:	$(FLUID) fluid$(EXEEXT)
 fluid$(EXEEXT):		$(OBJECTS) $(LIBNAME) $(FLLIBNAME) \
 			$(IMGLIBNAME)
 	echo Linking $@...
-	$(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
+	${LIBTOOL} --mode=link $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS:.o=.lo) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
 	$(OSX_ONLY) $(INSTALL_BIN) fluid fluid.app/Contents/MacOS
 	$(POSTBUILD) $@ ../FL/mac.r
 
@@ -81,7 +81,7 @@ include makedepend
 install: all
 	echo "Installing FLUID in $(DESTDIR)$(bindir)..."
 	-$(INSTALL_DIR) $(DESTDIR)$(bindir)
-	$(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
+	${LIBTOOL} --mode=install $(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
 
 install-linux:
 	-$(INSTALL_DIR) $(DESTDIR)/usr/share/applications