Browse Source

Fix build failure with ld --as-needed.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@177 7c53e7cc-98ea-0310-8f1f-a0b24da60408
iwamatsu 13 years ago
parent
commit
e5beb09c7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -4,7 +4,7 @@
 # to fit into your operating system / distribution
 #######################################################
 CXX=/usr/bin/g++
-CC=/usr/bin/gcc
+CC=/usr/bin/gcc-4.5
 CFLAGS=-Wall -I. -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/libpng12 -I/usr/include
 CXXFLAGS=$(CFLAGS)
 LDFLAGS=-lXft -lX11 -lfreetype -lXrender -lfontconfig -lpng12 -lz -lm -lcrypt -lXmu -lpng -ljpeg -lrt
@@ -33,7 +33,7 @@ endif
 all: slim
 
 slim: $(OBJECTS)
-	$(CXX) $(LDFLAGS) $(OBJECTS) -o $(NAME)
+	$(CXX) $(OBJECTS) $(LDFLAGS) -o $(NAME)
 
 .cpp.o:
 	$(CXX) $(CXXFLAGS) $(DEFINES) $(CUSTOM) -c $< -o $@