When concatenating variables in Makefile, strip spaces in case one is empty
authorIan Lynagh <igloo@earth.li>
Sat, 15 Mar 2008 14:17:51 +0000 (14:17 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 15 Mar 2008 14:17:51 +0000 (14:17 +0000)
Otherwise "$(A) $(B)" will not be equal to "" even if A and B are empty.
Trac #856.

rts/Makefile

index d88a823..2a20279 100644 (file)
@@ -36,7 +36,7 @@ endif
 # -----------------------------------------------------------------------------
 # RTS ways
 
-WAYS=$(GhcLibWays) $(GhcRTSWays)
+WAYS=$(strip $(GhcLibWays) $(GhcRTSWays))
 
 ifneq "$(findstring debug, $(way))" ""
 GhcRtsHcOpts=