Skip to content

Commit

Permalink
dev-scheme/gauche-cdb: respect CFLAGS/LDFLAGS
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
hattya committed Jul 15, 2018
1 parent 05964c1 commit 4e1d70c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-scheme/gauche-cdb/files/gauche-cdb-gauche-package.patch
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
-GOSH = @GOSH@
-GAUCHE_CONFIG = @GAUCHE_CONFIG@
+DESTDIR =
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@ # AC_LIB_LINKFLAGS adds to this..
+LDFLAGS = @LDFLAGS@
+GOSH = "@GOSH@"
+GAUCHE_CONFIG = "@GAUCHE_CONFIG@"
+GAUCHE_PACKAGE = "@GAUCHE_PACKAGE@"
Expand Down Expand Up @@ -76,9 +78,7 @@
-$(MODULE)_head.c $(MODULE)_tail.c :
- $(GAUCHE_CONFIG) --fixup-extension $(MODULE)
+$(PACKAGE).$(SOEXT): $(cdb_SRCS)
+ $(GAUCHE_PACKAGE) compile --verbose \
+ --libs="$(cdb_LIBS)" --cppflags="$(CPPFLAGS)" \
+ $(PACKAGE) $(cdb_SRCS)
+ $(GAUCHE_PACKAGE) compile --verbose --cppflags="$(CPPFLAGS)" --cflags="$(CFLAGS)" --ldflags="$(LDFLAGS)" --libs="$(cdb_LIBS)" $(PACKAGE) $(cdb_SRCS)

check : all
@rm -f test.log
Expand Down

0 comments on commit 4e1d70c

Please sign in to comment.