diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-03-31 16:56:31 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-03-31 16:56:31 -0700 |
commit | 489f1f89881ec5540c4268f3e845f8820b837643 (patch) | |
tree | 22b827dcebb93b5da9ed0a3cb19a45f21222ab01 | |
parent | f49618ca9d674ec7e596118f85027c4b503862ac (diff) | |
download | spike-489f1f89881ec5540c4268f3e845f8820b837643.zip spike-489f1f89881ec5540c4268f3e845f8820b837643.tar.gz spike-489f1f89881ec5540c4268f3e845f8820b837643.tar.bz2 |
Build fesvr as -fPIC to improve compatibility with old uses
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | fesvr/fesvr.mk.in | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 461d727..43a28b2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -191,9 +191,9 @@ $$($(2)_pch) : %.h.gch : %.h $(COMPILE) -x c++-header $$< -o $$@ # If using clang, don't depend (and thus don't build) precompiled headers $$($(2)_objs) : %.o : %.cc $$($(2)_gen_hdrs) $(if $(filter-out clang,$(CC)),$$($(2)_pch)) - $(COMPILE) -c $$< + $(COMPILE) $$($(2)_CFLAGS) -c $$< $$($(2)_c_objs) : %.o : %.c $$($(2)_gen_hdrs) - $(COMPILE_C) -c $$< + $(COMPILE_C) $$($(2)_CFLAGS) -c $$< $(2)_junk += $$($(2)_pch) $$($(2)_objs) $$($(2)_c_objs) $$($(2)_deps) \ $$($(2)_gen_hdrs) diff --git a/fesvr/fesvr.mk.in b/fesvr/fesvr.mk.in index cad3387..30c8bfe 100644 --- a/fesvr/fesvr.mk.in +++ b/fesvr/fesvr.mk.in @@ -14,6 +14,8 @@ fesvr_hdrs = \ rfb.h \ tsi.h \ +fesvr_CFLAGS = -fPIC + fesvr_install_hdrs = $(fesvr_hdrs) fesvr_install_lib = yes |