summaryrefslogtreecommitdiffhomepage
path: root/tools/mirb/Makefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-09 21:44:21 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-09 21:44:21 -0800
commit9168d166ae30a23b208b1d28ca2978f4e4309edd (patch)
tree6588088eb22486f2836b65f92c6041181e75e68a /tools/mirb/Makefile
parentdc18042e058f4e2e29725d475917723b70b0b66e (diff)
parentdcdd893bed1a4c416766d83cdc181e680e97ce61 (diff)
downloadmruby-9168d166ae30a23b208b1d28ca2978f4e4309edd.tar.gz
mruby-9168d166ae30a23b208b1d28ca2978f4e4309edd.zip
Merge pull request #603 from masuidrive/add_ldflags_to_makefiles
Added LDFLAGS to Makefiles
Diffstat (limited to 'tools/mirb/Makefile')
-rw-r--r--tools/mirb/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mirb/Makefile b/tools/mirb/Makefile
index c44af4c6b..8e26feaf3 100644
--- a/tools/mirb/Makefile
+++ b/tools/mirb/Makefile
@@ -54,9 +54,9 @@ endif
ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)
ifeq ($(OS),Windows_NT)
- MAKE_FLAGS = CC=$(CC) LL=$(LL) ALL_CFLAGS="$(ALL_CFLAGS)"
+ MAKE_FLAGS = CC=$(CC) LL=$(LL) ALL_CFLAGS='$(ALL_CFLAGS)' LDFLAGS='$(LDFLAGS)'
else
- MAKE_FLAGS = CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)'
+ MAKE_FLAGS = CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)' LDFLAGS='$(LDFLAGS)'
endif
##############################
@@ -67,7 +67,7 @@ all : $(LIBR) $(EXE)
# executable constructed using linker from object files
$(EXE) : $(LIBR) $(OBJS) $(EXTS)
- $(LL) -o $@ $(CFLAGS) $(OBJS) $(LIBR) $(GEM_ARCHIVE_FILES) $(EXTS) $(LIBS)
+ $(LL) -o $@ $(LDFLAGS) $(OBJS) $(LIBR) $(GEM_ARCHIVE_FILES) $(EXTS) $(LIBS)
-include $(OBJS:.o=.d)