Skip to content

Commit f5b2148

Browse files
committed
Use CFLAGS to build self-tests
1 parent 2b70409 commit f5b2148

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ include ../Make.inc
44
all: test-double test-float # test-double-system test-float-system
55

66
test-double: test-double.c libm-test.c
7-
$(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
7+
$(CC) $(CFLAGS) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
88

99
test-float: test-float.c libm-test.c
10-
$(CC) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
10+
$(CC) $(CFLAGS) -g $@.c -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
1111

1212
test-double-system: test-double.c libm-test.c
13-
$(CC) -g $< -DSYS_MATH_H -lm -o $@
13+
$(CC) $(CFLAGS) -g $< -DSYS_MATH_H -lm -o $@
1414

1515
test-float-system: test-float.c libm-test.c
16-
$(CC) -g $< -DSYS_MATH_H -lm -o $@
16+
$(CC) $(CFLAGS) -g $< -DSYS_MATH_H -lm -o $@

0 commit comments

Comments
 (0)