Skip to content

Commit 49ba8bc

Browse files
committed
Respect CFLAGS when building lrslib (autotools)
Upstream uses CFLAGS to pass the -I${ARITH} flag, so we pass need to manually include it. Also move CPPFLAGS from INCLUDEDIR to CC, sine INCLUDEDIR isn't always used.
1 parent aa0a8e3 commit 49ba8bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

M2/libraries/lrslib/Makefile.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ STRIPFILES = $(PROGRAMS)
1414
LICENSEFILES = COPYING
1515
CONFIGURECMD = true
1616
BUILDTARGET = lrs
17-
BUILDOPTIONS = CC="$(CC)" LIBDIR="$(BUILTLIBPATH)/lib $(LDFLAGS)" \
18-
INCLUDEDIR="$(BUILTLIBPATH)/include $(CPPFLAGS)"
17+
BUILDOPTIONS = CC="$(CC) $(CPPFLAGS)" \
18+
LIBDIR="$(BUILTLIBPATH)/lib $(LDFLAGS)" \
19+
INCLUDEDIR="$(BUILTLIBPATH)/include" \
20+
CFLAGS="$(CFLAGS) -Ilrsarith-011"
1921
INSTALLCMD = true
2022
CHECKCMD = true
2123
include ../Makefile.library

0 commit comments

Comments
 (0)