Skip to content

Commit

Permalink
Build fesvr as -fPIC to improve compatibility with old uses
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Mar 31, 2019
1 parent f49618c commit 489f1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions fesvr/fesvr.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ fesvr_hdrs = \
rfb.h \
tsi.h \

fesvr_CFLAGS = -fPIC

fesvr_install_hdrs = $(fesvr_hdrs)

fesvr_install_lib = yes
Expand Down

0 comments on commit 489f1f8

Please sign in to comment.