25904287 Adjust lftp to build with the GNU compilers
authorRich Burridge <rich.burridge@oracle.com>
Mon, 17 Apr 2017 11:12:35 -0700
changeset 7875 fdce0f6fd2bd
parent 7865 22ec3267b2a3
child 7876 d84350b4df6a
25904287 Adjust lftp to build with the GNU compilers
components/lftp/Makefile
--- a/components/lftp/Makefile	Thu Apr 13 20:30:48 2017 -0700
+++ b/components/lftp/Makefile	Mon Apr 17 11:12:35 2017 -0700
@@ -23,6 +23,7 @@
 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
 #
 BUILD_BITS= 64
+COMPILER= gcc
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		lftp
@@ -46,14 +47,12 @@
 
 CONFIGURE_OPTIONS  +=		--localedir=$(CONFIGURE_LOCALEDIR)
 
-# Studio 12.4 compiler doesn't grok GNU's __restrict
-COMPONENT_BUILD_ARGS +=	CPPFLAGS=-D__restrict=restrict
-
 REQUIRED_PACKAGES += library/expat
 REQUIRED_PACKAGES += library/gnutls-3
 REQUIRED_PACKAGES += library/readline
 REQUIRED_PACKAGES += library/zlib
 REQUIRED_PACKAGES += $(PERL_PKG)
 REQUIRED_PACKAGES += shell/ksh93
-REQUIRED_PACKAGES += system/library/c++-runtime
+REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
+REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
 REQUIRED_PACKAGES += system/library/math