Skip to content

Commit a949ef5

Browse files
committed
append instead of prepend CFLAGS for the other makefiles
1 parent b1c0227 commit a949ef5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

makefile.mingw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CFLAGS = -O2 -DUSE_LTM -DLTM_DESC -I../libtommath
2525
EXTRALIBS = -L../libtommath -ltommath
2626

2727
#Compilation flags
28-
LTC_CFLAGS = $(CFLAGS) -Isrc/headers -Itests -DLTC_SOURCE
28+
LTC_CFLAGS = -Isrc/headers -Itests -DLTC_SOURCE $(CFLAGS)
2929
LTC_LDFLAGS = $(LDFLAGS) $(EXTRALIBS)
3030
VERSION=1.18.0-rc1
3131

makefile.msvc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CFLAGS = /Ox /DUSE_LTM /DLTM_DESC /I../libtommath
2020
EXTRALIBS = ../libtommath/tommath.lib
2121

2222
#Compilation flags
23-
LTC_CFLAGS = $(CFLAGS) /nologo /Isrc/headers/ /Itests/ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /DLTC_SOURCE /W3
23+
LTC_CFLAGS = /nologo /Isrc/headers/ /Itests/ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /DLTC_SOURCE /W3 $(CFLAGS)
2424
LTC_LDFLAGS = advapi32.lib $(EXTRALIBS)
2525
VERSION=1.18.0-rc1
2626

makefile.unix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CFLAGS = -O2 -DUSE_LTM -DLTM_DESC -I../libtommath
3737
EXTRALIBS = ../libtommath/libtommath.a
3838

3939
#Compilation flags
40-
LTC_CFLAGS = $(CFLAGS) -Isrc/headers -Itests -DLTC_SOURCE
40+
LTC_CFLAGS = -Isrc/headers -Itests -DLTC_SOURCE $(CFLAGS)
4141
LTC_LDFLAGS = $(LDFLAGS) $(EXTRALIBS)
4242
VERSION=1.18.0-rc1
4343

0 commit comments

Comments
 (0)