1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

DtSvc: we can't use archive .a libs in building libDtSvc.so

We were building subsets of this library as archive.a objects, then
trying to combine them into a shared object.  This warnings, and link
failures due to the lack of 0fPIC when building the archive libraries.

Now, we do not buld archive libraries, and the main libDtSvc.so
library is build by adding all of the .lo file in the component
subdirectories.

In a future commit, we could just remove the SUBDIR builds (DtUtil1,
etc) and build the sub objects directly.
This commit is contained in:
Jon Trulson 2019-10-29 18:11:42 -06:00
parent d99b3eb895
commit d183ade8b3
2 changed files with 4 additions and 5 deletions

View file

@ -2,7 +2,7 @@ MAINTAINERCLEANFILES = Makefile.in
noinst_LTLIBRARIES = libDtUtil2.la
libDtUtil2_la_CFLAGS = -I../include $(TIRPCINC) -DMULTIBYTE \
libDtUtil2_la_CFLAGS = -I../include $(TIRPCINC) -DMULTIBYTE -DNLS16 \
@DT_INCDIR@ \
-DCDE_INSTALLATION_TOP=\"${prefix}\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \

View file

@ -6,7 +6,6 @@ lib_LTLIBRARIES = libDtSvc.la
libDtSvc_la_SOURCES =
libDtSvc_la_LIBADD = $(LIBXIN) -lXinerama DtUtil1/libDtUtil1.la \
DtUtil2/libDtUtil2.la DtEncap/libDtEncap.la \
DtCodelibs/libDtCodelibs.la DtXpm/libDtXpm.la
libDtSvc_la_LDFLAGS = -version-info 2:1:0
libDtSvc_la_LIBADD = DtUtil1/*.lo DtUtil2/*.lo DtEncap/*.lo \
DtCodelibs/*.lo DtXpm/*.lo
libDtSvc_la_LDFLAGS = -fPIC -version-info 2:1:0