summaryrefslogtreecommitdiff
path: root/packages/icewm/icewm-1.2.20/makefile.patch
blob: 9473c9b2a95ad67620862517639d7c3d2606956e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- ./src/Makefile.in	2005-02-01 21:56:08.000000000 +0100
+++ ./src/Makefile.in	2005-02-01 21:55:12.000000000 +0100
@@ -206,10 +206,21 @@
 %.o: %.cc
 	@echo "  CXX   " $@
 	@$(CXX) $(CXXFLAGS) $(GCCDEP) -c $<
-	
-genpref $(BINARIES):
+
+HOSTCXX=g++
+HOSTLD=g++
+
+genpref.o: genpref.cc
+	@echo "  HOSTCXX   " $@
+	@$(HOSTCXX) $(CXXFLAGS) $(GCCDEP) -c $<
+
+$(BINARIES):
 	@echo "  LD    " $@
 	@$(LD) -o $@$(EXEEXT) $($@_OBJS) $(LFLAGS) $($@_LFLAGS) $(LIBS) $($@_LIBS)
+	
+genpref:
+	@echo "  HOSTLD    " $@
+	@$(HOSTLD) -o $@$(EXEEXT) $($@_OBJS) $(LFLAGS) $($@_LFLAGS) $(LIBS) $($@_LIBS)
 
 ################################################################################