PKGBUILDs/community/lrs/lrs-system-cflags.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

2020-06-04 12:55:36 +00:00
--- lrslib-071/makefile.orig 2020-06-04 09:58:02.217703517 +0000
+++ lrslib-071/makefile 2020-06-04 09:59:20.505523290 +0000
2021-06-04 17:08:36 +00:00
@@ -32,8 +32,8 @@
2020-06-04 12:55:36 +00:00
#LIBDIR = /usr/lib
#Kyoto machines usage
-INCLUDEDIR = /usr/local/include
-LIBDIR = /usr/local/lib
+INCLUDEDIR = /usr/include
+LIBDIR = /usr/lib
2021-06-04 17:08:36 +00:00
CFLAGS ?= -O3 -Wall
2020-06-04 12:55:36 +00:00
#CFLAGS = -g -Wall
2021-06-04 17:08:36 +00:00
@@ -228,7 +228,7 @@
2019-07-09 13:55:24 +00:00
# Building (linking) the shared library, and relevant symlinks.
${SHLIB}: ${SHLIBOBJ}
- $(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} -lgmp
+ $(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} -lgmp ${LDFLAGS}
${SONAME}: ${SHLIB}
ln -sf ${SHLIB} ${SONAME}
2021-06-04 17:08:36 +00:00
@@ -241,11 +240,11 @@
2019-07-09 13:55:24 +00:00
all-shared: ${SHLIBBIN}
2021-06-04 17:08:36 +00:00
lrs-shared: ${SHLINK} lrs-shared.o
- $(CC) $^ -o $@ -L . -llrs
+ $(CC) $^ -o $@ -L . -llrs ${LDFLAGS}
2019-07-09 13:55:24 +00:00
lrsnash-shared: ${SHLINK} lrsnash.c
2021-06-04 17:08:36 +00:00
- $(CC) ${CFLAGS} -DGMP -DMA lrsnash.c lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs -lgmp
+ $(CC) ${CFLAGS} -DGMP -DMA lrsnash.c lrsnashlib.c -I${INCLUDEDIR} -o $@ -L . -llrs -lgmp ${LDFLAGS}
2019-07-09 13:55:24 +00:00
2021-06-04 17:08:36 +00:00
# driver object files
2019-07-09 13:55:24 +00:00