aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.file-metadatabin7763 -> 7763 bytes
-rw-r--r--reproduce/software/make/high-level.mk5
2 files changed, 4 insertions, 1 deletions
diff --git a/.file-metadata b/.file-metadata
index a684d71..88b40d7 100644
--- a/.file-metadata
+++ b/.file-metadata
Binary files differ
diff --git a/reproduce/software/make/high-level.mk b/reproduce/software/make/high-level.mk
index 2b9b13f..f46480a 100644
--- a/reproduce/software/make/high-level.mk
+++ b/reproduce/software/make/high-level.mk
@@ -888,6 +888,8 @@ $(ibidir)/ghostscript: $(ibidir)/libpng \
# First we need to make sure some necessary X11 libraries that we
# don't yet install in this template are present on the host
# system, see https://savannah.nongnu.org/task/?15481 .
+ # Adding `-L/opt/X11/lib' to LDFLAGS is necessary for macOS systems
+ # because X11 libraries used to be installed there.
echo;
echo "Template: testing necessary X11 libraries for ghostscript"
echo "---------------------------------------------------------"
@@ -895,7 +897,8 @@ $(ibidir)/ghostscript: $(ibidir)/libpng \
cprog=$(ddir)/libXext-test-for-ghostscript.c
echo "#include <stdio.h>" > $$cprog
echo "int main(void) {return 0;}" >> $$cprog
- if $$CC $$cprog -o$$oprog -lXt -lSM -lICE -lXext; then
+ export LDFLAGS="$$LDFLAGS -L/opt/X11/lib"
+ if $$CC $$LDFLAGS $$cprog -o$$oprog -lXt -lSM -lICE -lXext; then
echo "Necessary X11 libraries are present. Proceeding to the build."
rm $$cprog $$oprog
else