Skip to content

Commit

Permalink
port debian package patch to respect CFLAGS and LDFLAGS, fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 21, 2021
1 parent 2f1f2b9 commit 5f31756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ endif
dll: CPPOPT +=$(DLLFLAG)
dll: AR :=gcc
dll: ARFLAGS ?=-shared -Wl,-soname,$(BINARY).1
dll: LINKOPT :=
dll: LINKOPT :=$(LDFLAGS)
dll: AROUTPUT :=-o

oct mex: CPPOPT+= $(DLLFLAG)
Expand Down Expand Up @@ -152,7 +152,7 @@ $(OUTPUT_DIR)/$(BINARY): $(OBJS)

%$(OBJSUFFIX): %.c
@$(ECHO) Building $@
$(CC) $(INCLUDEDIRS) $(CPPOPT) -c -o $@ $<
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDEDIRS) $(CPPOPT) -c -o $@ $<

%$(OBJSUFFIX): %.cu
@$(ECHO) Building $@
Expand Down

0 comments on commit 5f31756

Please sign in to comment.