|
|
c3c0f2 |
commit bde3da26f1f2755689e16fc9f5ab404367d1fdc8
|
|
|
c3c0f2 |
Author: Vince Weaver <vincent.weaver@maine.edu>
|
|
|
c3c0f2 |
Date: Wed Jan 24 14:13:28 2018 -0500
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
build: fix various LDFLAGS/CFLAGS issues
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
issues were reported by Andreas Beckmann <anbe@debian.org>
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
diff --git a/src/components/Makefile_comp_tests.target.in b/src/components/Makefile_comp_tests.target.in
|
|
|
c3c0f2 |
index 9a369adb..a4412bea 100644
|
|
|
c3c0f2 |
--- a/src/components/Makefile_comp_tests.target.in
|
|
|
c3c0f2 |
+++ b/src/components/Makefile_comp_tests.target.in
|
|
|
c3c0f2 |
@@ -9,7 +9,7 @@ INCLUDE = -I. -I@includedir@ -I$(datadir) -I$(testlibdir) -I$(validationlibdir)
|
|
|
c3c0f2 |
LIBDIR = @libdir@
|
|
|
c3c0f2 |
PAPILIB = $(datadir)/@LIBRARY@
|
|
|
c3c0f2 |
TESTLIB = $(testlibdir)/libtestlib.a
|
|
|
c3c0f2 |
-LDFLAGS = @LDL@
|
|
|
c3c0f2 |
+LDFLAGS = @LDFLAGS@ @LDL@
|
|
|
c3c0f2 |
CC = @CC@
|
|
|
c3c0f2 |
F77 = @F77@
|
|
|
c3c0f2 |
CC_R = @CC_R@
|
|
|
c3c0f2 |
diff --git a/src/components/perf_event_uncore/tests/Makefile b/src/components/perf_event_uncore/tests/Makefile
|
|
|
c3c0f2 |
index 3ee8fc2a..d70debe6 100644
|
|
|
c3c0f2 |
--- a/src/components/perf_event_uncore/tests/Makefile
|
|
|
c3c0f2 |
+++ b/src/components/perf_event_uncore/tests/Makefile
|
|
|
c3c0f2 |
@@ -17,19 +17,19 @@ perf_event_uncore_lib.o: perf_event_uncore_lib.c perf_event_uncore_lib.h
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
perf_event_amd_northbridge: perf_event_amd_northbridge.o $(DOLOOPS) $(UTILOBJS) $(PAPILIB) $(DOLOOPS)
|
|
|
c3c0f2 |
- $(CC) $(LFLAGS) -o perf_event_amd_northbridge perf_event_amd_northbridge.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
+ $(CC) $(CFLAGS) -o perf_event_amd_northbridge perf_event_amd_northbridge.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
perf_event_uncore: perf_event_uncore.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) perf_event_uncore_lib.o
|
|
|
c3c0f2 |
- $(CC) $(LFLAGS) -o perf_event_uncore perf_event_uncore.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
+ $(CC) $(CFLAGS) -o perf_event_uncore perf_event_uncore.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
perf_event_uncore_attach: perf_event_uncore_attach.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) perf_event_uncore_lib.o
|
|
|
c3c0f2 |
- $(CC) $(LFLAGS) -o perf_event_uncore_attach perf_event_uncore_attach.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
+ $(CC) $(CFLAGS) -o perf_event_uncore_attach perf_event_uncore_attach.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
perf_event_uncore_multiple: perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB)
|
|
|
c3c0f2 |
- $(CC) $(LFLAGS) $(INCLUDE) -o perf_event_uncore_multiple perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
+ $(CC) $(CFLAGS) $(INCLUDE) -o perf_event_uncore_multiple perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
perf_event_uncore_cbox: perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB)
|
|
|
c3c0f2 |
- $(CC) $(LFLAGS) $(INCLUDE) -o perf_event_uncore_cbox perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
+ $(CC) $(CFLAGS) $(INCLUDE) -o perf_event_uncore_cbox perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
diff --git a/src/ctests/Makefile.recipies b/src/ctests/Makefile.recipies
|
|
|
c3c0f2 |
index 63c107c0..201f3c85 100644
|
|
|
c3c0f2 |
--- a/src/ctests/Makefile.recipies
|
|
|
c3c0f2 |
+++ b/src/ctests/Makefile.recipies
|
|
|
c3c0f2 |
@@ -350,7 +350,7 @@ code2name: code2name.c $(TESTLIB) $(PAPILIB)
|
|
|
c3c0f2 |
$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) code2name.c $(TESTLIB) $(PAPILIB) $(LDFLAGS) -o code2name
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
attach_target: attach_target.c $(DOLOOPS)
|
|
|
c3c0f2 |
- -$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) attach_target.c -o attach_target $(DOLOOPS) $(TESTLIB)
|
|
|
c3c0f2 |
+ -$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) attach_target.c -o attach_target $(DOLOOPS) $(TESTLIB) $(LDFLAGS)
|
|
|
c3c0f2 |
|
|
|
c3c0f2 |
zero_attach: zero_attach.c $(TESTLIB) $(DOLOOPS) $(PAPILIB)
|
|
|
c3c0f2 |
-$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) zero_attach.c $(TESTLIB) $(DOLOOPS) $(PAPILIB) $(LDFLAGS) -o zero_attach
|
|
|
c3c0f2 |
diff --git a/src/ctests/Makefile.target.in b/src/ctests/Makefile.target.in
|
|
|
c3c0f2 |
index bb51c350..fcc3373b 100644
|
|
|
c3c0f2 |
--- a/src/ctests/Makefile.target.in
|
|
|
c3c0f2 |
+++ b/src/ctests/Makefile.target.in
|
|
|
c3c0f2 |
@@ -12,7 +12,7 @@ LIBRARY=@LIBRARY@
|
|
|
c3c0f2 |
SHLIB=@SHLIB@
|
|
|
c3c0f2 |
PAPILIB = ../@LINKLIB@
|
|
|
c3c0f2 |
TESTLIB = $(testlibdir)/libtestlib.a
|
|
|
c3c0f2 |
-LDFLAGS = @LDL@ @STATIC@
|
|
|
c3c0f2 |
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
|
|
|
c3c0f2 |
CC = @CC@
|
|
|
c3c0f2 |
MPICC = @MPICC@
|
|
|
c3c0f2 |
F77 = @F77@
|
|
|
c3c0f2 |
diff --git a/src/ftests/Makefile.target.in b/src/ftests/Makefile.target.in
|
|
|
c3c0f2 |
index 718586e5..8006dd8d 100644
|
|
|
c3c0f2 |
--- a/src/ftests/Makefile.target.in
|
|
|
c3c0f2 |
+++ b/src/ftests/Makefile.target.in
|
|
|
c3c0f2 |
@@ -11,7 +11,7 @@ LIBRARY = @LIBRARY@
|
|
|
c3c0f2 |
SHLIB=@SHLIB@
|
|
|
c3c0f2 |
PAPILIB = ../@LINKLIB@
|
|
|
c3c0f2 |
TESTLIB = $(testlibdir)/libtestlib.a
|
|
|
c3c0f2 |
-LDFLAGS = @LDL@
|
|
|
c3c0f2 |
+LDFLAGS = @LDFLAGS@ @LDL@
|
|
|
c3c0f2 |
CC = @CC@
|
|
|
c3c0f2 |
F77 = @F77@
|
|
|
c3c0f2 |
CC_R = @CC_R@
|
|
|
c3c0f2 |
diff --git a/src/utils/Makefile.target.in b/src/utils/Makefile.target.in
|
|
|
c3c0f2 |
index a5eab438..58d438a1 100644
|
|
|
c3c0f2 |
--- a/src/utils/Makefile.target.in
|
|
|
c3c0f2 |
+++ b/src/utils/Makefile.target.in
|
|
|
c3c0f2 |
@@ -11,7 +11,7 @@ LIBRARY=@LIBRARY@
|
|
|
c3c0f2 |
SHLIB=@SHLIB@
|
|
|
c3c0f2 |
PAPILIB = ../@LINKLIB@
|
|
|
c3c0f2 |
TESTLIB = $(testlibdir)/libtestlib.a
|
|
|
c3c0f2 |
-LDFLAGS = @LDL@ @STATIC@
|
|
|
c3c0f2 |
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
|
|
|
c3c0f2 |
CC = @CC@
|
|
|
c3c0f2 |
MPICC = @MPICC@
|
|
|
c3c0f2 |
F77 = @F77@
|
|
|
c3c0f2 |
diff --git a/src/validation_tests/Makefile.target.in b/src/validation_tests/Makefile.target.in
|
|
|
c3c0f2 |
index a5eab438..58d438a1 100644
|
|
|
c3c0f2 |
--- a/src/validation_tests/Makefile.target.in
|
|
|
c3c0f2 |
+++ b/src/validation_tests/Makefile.target.in
|
|
|
c3c0f2 |
@@ -11,7 +11,7 @@ LIBRARY=@LIBRARY@
|
|
|
c3c0f2 |
SHLIB=@SHLIB@
|
|
|
c3c0f2 |
PAPILIB = ../@LINKLIB@
|
|
|
c3c0f2 |
TESTLIB = $(testlibdir)/libtestlib.a
|
|
|
c3c0f2 |
-LDFLAGS = @LDL@ @STATIC@
|
|
|
c3c0f2 |
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
|
|
|
c3c0f2 |
CC = @CC@
|
|
|
c3c0f2 |
MPICC = @MPICC@
|
|
|
c3c0f2 |
F77 = @F77@
|