Skip to content
Browse files

Merge pull request #19 from holtrop/gdc-build-fixes

Gdc build fixes
  • Loading branch information...
2 parents 9095b9a + 8513cbd commit 06126da4343b9cbb700509c485f23e086fd34a37 @Dav1dde committed Oct 29, 2013
Showing with 7 additions and 3 deletions.
  1. +5 −1 Makefile
  2. +2 −2 command.make
View
6 Makefile
@@ -120,8 +120,12 @@ $(SHARED_LIBNAME): $(PICOBJECTS)
$(DC) -shared $(SONAME_FLAG) $@.$(MAJOR_VERSION) $(OUTPUT)$(DLIB_PATH)$(PATH_SEP)$@.$(PROJECT_VERSION) $^
#$(CC) -l$(PHOBOS) -l$(DRUNTIME) -shared -Wl,-soname,$@.$(MAJOR_VERSION) -o $(DLIB_PATH)$(PATH_SEP)$@.$(PROJECT_VERSION) $^
+.PHONY: output_directories
+output_directories:
+ mkdir -p $(dir $(OBJECTS))
+
# create object files
-$(BUILD_PATH)$(PATH_SEP)%.o : %.d
+$(BUILD_PATH)$(PATH_SEP)%.o : %.d output_directories
$(DC) $(DCFLAGS) $(DCFLAGS_LINK) $(DCFLAGS_IMPORT) -c $< $(OUTPUT)$@
# create shared object files
View
4 command.make
@@ -86,8 +86,8 @@ endif
# Define flag for gdc other
ifeq ($(DC),gdc)
- DCFLAGS = -O2 -fdeprecated
- LINKERFLAG= -Xlinker
+ DCFLAGS = -O2
+ LINKERFLAG= -Wl,
OUTPUT = -o
HF = -fintfc-file=
DF = -fdoc-file=

0 comments on commit 06126da

Please sign in to comment.
Something went wrong with that request. Please try again.