blob: c76915fb813fa23f72cd2bfabea8d29da5758470 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 239d681306a8d97ed10954788d32ba2f4b55f77c Mon Sep 17 00:00:00 2001
2From: Kang Kai <kai.kang@windriver.com>
3Date: Thu, 29 Mar 2018 16:10:16 +0800
4Subject: [PATCH 06/10] prevent recompiling
5
6Just use commands provided by ghostscript-native, preventing recompile
7them when compile ghostscript. Way to enable cross compile.
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008
9Upstream-Status: Pending
10
11Signed-off-by: Kang Kai <kai.kang@windriver.com>
12Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
13
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014Rebase to 9.25
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
17---
18 base/unix-aux.mak | 44 --------------------------------------------
19 1 file changed, 44 deletions(-)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021diff --git a/base/unix-aux.mak b/base/unix-aux.mak
22index 5bf72e9..9cb39d7 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023--- a/base/unix-aux.mak
24+++ b/base/unix-aux.mak
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025@@ -54,50 +54,6 @@ $(AUX)gp_stdia.$(OBJ): $(GLSRC)gp_stdia.
26 $(stdio__h) $(time__h) $(unistd__h) $(gx_h) $(gp_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
27 $(GLCCAUX) $(AUXO_)gp_stdia.$(OBJ) $(C_) $(GLSRC)gp_stdia.c
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029-# -------------------------- Auxiliary programs --------------------------- #
30-
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031-$(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
32- $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c $(AUXEXTRALIBS)
33-
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034-$(PACKPS_XE): $(GLSRC)pack_ps.c $(stdpre_h) $(UNIX_AUX_MAK) $(MAKEDIRS)
35- $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(PACKPS_XE) $(GLSRC)pack_ps.c $(AUXEXTRALIBS)
36-
37-# On the RS/6000 (at least), compiling genarch.c with gcc with -O
38-# produces a buggy executable.
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039-$(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
40- $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c $(AUXEXTRALIBS)
41-
42-$(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
43- $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c $(AUXEXTRALIBS)
44-
45-$(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
46- $(CCAUX_) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c $(AUXEXTRALIBS)
47-
48-$(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS) $(UNIX_AUX_MAK) $(MAKEDIRS)
49- $(CCAUX_) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c $(AUXEXTRALIBS)
50-
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080051-# To get GS to use the system zlib, you remove/hide the gs/zlib directory
52-# which means that the mkromfs build can't find the zlib source it needs.
53-# So it's split into two targets, one using the zlib source directly.....
Brad Bishopd7bf8c12018-02-25 22:55:05 -050054-MKROMFS_OBJS_0=$(MKROMFS_ZLIB_OBJS) $(AUX)gpmisc.$(OBJ) $(AUX)gp_getnv.$(OBJ) \
55- $(AUX)gscdefs.$(OBJ) $(AUX)gp_unix.$(OBJ) $(AUX)gp_unifs.$(OBJ) $(AUX)gp_unifn.$(OBJ) \
56- $(AUX)gp_stdia.$(OBJ) $(AUX)gsutil.$(OBJ) $(AUX)memento.$(OBJ)
57-
58-$(MKROMFS_XE)_0: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_0) $(UNIX_AUX_MAK) $(MAKEDIRS)
59- $(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_0 $(MKROMFS_OBJS_0) $(AUXEXTRALIBS)
60-
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061-# .... and one using the zlib library linked via the command line
Brad Bishopd7bf8c12018-02-25 22:55:05 -050062-MKROMFS_OBJS_1=$(AUX)gscdefs.$(OBJ) \
63- $(AUX)gpmisc.$(OBJ) $(AUX)gp_getnv.$(OBJ) \
64- $(AUX)gp_unix.$(OBJ) $(AUX)gp_unifs.$(OBJ) $(AUX)gp_unifn.$(OBJ) \
65- $(AUX)gp_stdia.$(OBJ) $(AUX)gsutil.$(OBJ)
66-
67-$(MKROMFS_XE)_1: $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS_1) $(UNIX_AUX_MAK) $(MAKEDIRS)
68- $(CCAUX_) $(GENOPTAUX) $(I_)$(GLSRCDIR)$(_I) $(I_)$(GLOBJ)$(_I) $(I_)$(ZSRCDIR)$(_I) $(GLSRC)mkromfs.c $(O_)$(MKROMFS_XE)_1 $(MKROMFS_OBJS_1) $(AUXEXTRALIBS)
69-
70-$(MKROMFS_XE): $(MKROMFS_XE)_$(SHARE_ZLIB) $(UNIX_AUX_MAK) $(MAKEDIRS)
71- $(CP_) $(MKROMFS_XE)_$(SHARE_ZLIB) $(MKROMFS_XE)
72-
Brad Bishopd7bf8c12018-02-25 22:55:05 -050073 # Query the environment to construct gconfig_.h.
74 # These are all defined conditionally (except the JasPER one), so that
75 # they can be overridden by settings from the configure script.
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080076--
771.8.3.1
78