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.
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)\" \
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