--- a/components/nethack/Makefile Tue Apr 17 10:38:01 2012 -0700
+++ b/components/nethack/Makefile Tue Apr 17 10:40:54 2012 -0700
@@ -20,7 +20,7 @@
#
#
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
#
include ../../make-rules/shared-macros.mk
@@ -50,6 +50,9 @@
COMPONENT_INSTALL_ARGS += CHGRP=true
COMPONENT_INSTALL_ARGS += ROOT=$(PROTO_DIR)
+COMPONENT_BUILD_ENV += CC=$(CC)
+COMPONENT_INSTALL_ENV += CC=$(CC)
+
PKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
# common targets