mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
Closes: https://bugs.gentoo.org/973234 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/753 Merges: https://codeberg.org/gentoo/gentoo/pulls/753 Signed-off-by: Sam James <sam@gentoo.org>
25 lines
982 B
Diff
25 lines
982 B
Diff
https://bugs.gentoo.org/973234
|
|
https://bugs.ghostscript.com/show_bug.cgi?id=709373
|
|
|
|
--- ghostscript-10.06.0/base/unixlink.mak
|
|
+++ ghostscript-10.06.0/base/unixlink.mak
|
|
@@ -45,6 +45,9 @@ GS_DOT_O=$(PSOBJ)gs.$(OBJ)
|
|
# and search paths for them
|
|
CONFLIBSTR=-pl "&-l%s&s&&" -pL "&-L%s&s&&" -l
|
|
|
|
+# detect -fopenmp in CFLAGS
|
|
+HAVE_OPENMP := $(shell echo $(CFLAGS) | grep -o '\-fopenmp')
|
|
+
|
|
libgs_a_tr=$(GLOBJ)libgs_a.tr
|
|
GS_A=$(BINDIR)$(D)$(GS).a
|
|
$(GS_A): $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) \
|
|
@@ -165,7 +168,7 @@ ldt_tr=$(PSOBJ)ldt.tr
|
|
|
|
$(GS_XE): $(ld_tr) $(gs_tr) $(ECHOGS_XE) $(XE_ALL) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) \
|
|
$(UNIXLINK_MAK)
|
|
- $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(GS_LDFLAGS) -o $(GS_XE)
|
|
+ $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(HAVE_OPENMP) $(GS_LDFLAGS) -o $(GS_XE)
|
|
$(ECHOGS_XE) -a $(ldt_tr) -n -s $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) $(GS_DOT_O) -s
|
|
cat $(gsld_tr) >> $(ldt_tr)
|
|
$(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) $(STDLIBS)
|