2255 the tools directory does not build with gcc default tip
authorAndrew Stormont <andyjstormont@gmail.com>
Wed, 23 May 2012 12:14:49 +0100
changeset 494 8346b431af59
parent 493 66a35caef41c
2255 the tools directory does not build with gcc
tools/Makefile
--- a/tools/Makefile	Fri May 04 09:35:45 2012 +0100
+++ b/tools/Makefile	Wed May 23 12:14:49 2012 +0100
@@ -19,6 +19,7 @@
 # CDDL HEADER END
 #
 # Copyright (c) 2010, Oracle and/or it's affiliates.  All rights reserved.
+# Copyright (c) 2012, Nexenta Systems, Inc.  All rights reserved.
 #
 
 include ../make-rules/shared-macros.mk
@@ -27,7 +28,7 @@
 							time-$(MACH64).so
 
 time-$(MACH64).o:			BITS=64
-time-$(MACH32).o time-$(MACH64).o:	CFLAGS += -Kpic
+time-$(MACH32).o time-$(MACH64).o:	CFLAGS += $(CC_PIC)
 
 time-$(MACH32).o time-$(MACH64).o:	time.c
 	$(CC) $(CFLAGS) -c -o $@ $<