[PC-BSD Commits] r19443 - pcbsd/current/src-sh/pbi-manager/wrapper

svn at pcbsd.org svn at pcbsd.org
Mon Sep 24 07:02:23 PDT 2012


Author: kris
Date: 2012-09-24 14:02:23 +0000 (Mon, 24 Sep 2012)
New Revision: 19443

Modified:
   pcbsd/current/src-sh/pbi-manager/wrapper/Makefile
Log:

Make wrapper build work with CLANG



Modified: pcbsd/current/src-sh/pbi-manager/wrapper/Makefile
===================================================================
--- pcbsd/current/src-sh/pbi-manager/wrapper/Makefile	2012-09-24 13:58:54 UTC (rev 19442)
+++ pcbsd/current/src-sh/pbi-manager/wrapper/Makefile	2012-09-24 14:02:23 UTC (rev 19443)
@@ -4,13 +4,12 @@
 
 ####### Compiler, tools and options
 
-CC            = gcc
-CXX           = g++
+CC            ?= gcc
+CXX           ?= g++
 DEFINES       = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
 CFLAGS        = -pipe -O2 -Wall -W $(DEFINES)
 CXXFLAGS      = -pipe -O2 -Wall -W $(DEFINES)
 INCPATH       = -I/usr/local/include -I. -I/usr/local/include
-LINK          = gcc
 LFLAGS        = -Wl,-O1
 LIBS          = $(SUBLIBS)
 AR            = ar cqs
@@ -71,7 +70,7 @@
 
 $(TARGET):  $(OBJECTS)  
 	@$(CHK_DIR_EXISTS) /usr/pbi/ || $(MKDIR) /usr/pbi/
-	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
+	$(CC) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
 
 Makefile:
 



More information about the Commits mailing list