aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-02-10 09:46:08 +0000
committerErlang/OTP <[email protected]>2010-02-10 09:46:08 +0000
commitd115b311ca388145fb1aebf385206c47d3cc9ec1 (patch)
treea4ff6c1e556afad614847402499e252221ba2dc5 /lib/compiler/src
parent7c0ca6e0bd1025c06358a154c26dd59629e94162 (diff)
downloadotp-d115b311ca388145fb1aebf385206c47d3cc9ec1.tar.gz
otp-d115b311ca388145fb1aebf385206c47d3cc9ec1.tar.bz2
otp-d115b311ca388145fb1aebf385206c47d3cc9ec1.zip
Support the configure option --enable-native-libs
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile
index fde2b1a655..022347d5a8 100644
--- a/lib/compiler/src/Makefile
+++ b/lib/compiler/src/Makefile
@@ -1,19 +1,19 @@
#
# %CopyrightBegin%
-#
-# Copyright Ericsson AB 1996-2009. All Rights Reserved.
-#
+#
+# Copyright Ericsson AB 1996-2010. All Rights Reserved.
+#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
# compliance with the License. You should have received a copy of the
# Erlang Public License along with this software. If not, it can be
# retrieved online at http://www.erlang.org/.
-#
+#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
-#
+#
# %CopyrightEnd%
#
@@ -114,6 +114,9 @@ APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
# FLAGS
# ----------------------------------------------------
+ifeq ($(NATIVE_LIBS_ENABLED),yes)
+ERL_COMPILE_FLAGS += +native
+endif
ERL_COMPILE_FLAGS += +inline +warn_unused_import -I../../stdlib/include -I$(EGEN) -W
# ----------------------------------------------------