Skip to content

Commit

Permalink
Remove LDFLAGS
Browse files Browse the repository at this point in the history
Signed-off-by: onox <[email protected]>
Fixes: #2
  • Loading branch information
onox committed Oct 30, 2019
1 parent af9a1e2 commit 6aa4e4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
CFLAGS ?= -O2 -march=native
LDFLAGS ?= -Wl,-z,relro -Wl,-z,now

GNATMAKE = gprbuild -dm -p
GNATCLEAN = gprclean -q
Expand All @@ -15,13 +14,13 @@ alidir = $(libdir)
.PHONY: build tests debug clean coverage install

build:
$(GNATMAKE) -P tools/json_ada.gpr -cargs $(CFLAGS) -largs $(LDFLAGS)
$(GNATMAKE) -P tools/json_ada.gpr -cargs $(CFLAGS)

build_test:
$(GNATMAKE) -P tests/unit/unit_tests.gpr -XMode=coverage -cargs -O0 -largs $(LDFLAGS)
$(GNATMAKE) -P tests/unit/unit_tests.gpr -XMode=coverage -cargs -O0

debug:
$(GNATMAKE) -P tools/json_ada.gpr -XMode=debug -cargs $(CFLAGS) -largs $(LDFLAGS)
$(GNATMAKE) -P tools/json_ada.gpr -XMode=debug -cargs $(CFLAGS)

clean:
$(GNATCLEAN) -P tools/json_ada.gpr
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/unit_tests.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ project Unit_Tests is

for Languages use ("Ada");

for Create_Missing_Dirs use "True";

for Source_Dirs use ("../../src", "src");
for Object_Dir use "build/obj";
for Exec_Dir use ".";
Expand Down

0 comments on commit 6aa4e4e

Please sign in to comment.