Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit ca30f29

Browse files
committed
[fix] makefile so that ldflags and cflags can be passed from the env
1 parent 7692249 commit ca30f29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ INSTALL?=install
33
LIBS=-lsodium
44
UNAME := $(shell uname -s)
55
ifeq ($(UNAME),Darwin)
6-
CFLAGS=-Wall -fPIC -O2 -g $(INC) #-DTRACE -DNORANDOM
6+
CFLAGS+=-Wall -fPIC -O2 -g $(INC) #-DTRACE -DNORANDOM
77
SOEXT=dylib
88
SOFLAGS=-Wl,-install_name,libsphinx.$(SOEXT)
99
else
10-
CFLAGS=-Wall -fPIC -O2 -g -Wl,-z,defs $(INC) #-DTRACE -DNORANDOM
10+
CFLAGS+=-Wall -fPIC -O2 -g -Wl,-z,defs $(INC) #-DTRACE -DNORANDOM
1111
SOEXT=so
1212
SOFLAGS=-Wl,-soname,libsphinx.$(SOEXT).0
1313
endif
14-
LDFLAGS=-g $(LIBS)
14+
LDFLAGS+=-g $(LIBS)
1515
CC=gcc
1616

1717
all: bin libsphinx.$(SOEXT) tests

0 commit comments

Comments
 (0)