--- obj/Makefile.in.dist	Sat Dec  7 10:19:48 2002
+++ obj/Makefile.in	Sat Dec  7 10:21:05 2002
@@ -82,6 +82,9 @@
 include ../version.incl
 include ../src/xercesc/Makefile.incl
 
+#override AR definition in Makefile.incl
+AR  = @l_ar@
+
 LIB=${XERCESCROOT}/lib
 ## OS390BATCH
 ifeq (${OS390BATCH},1)
@@ -117,7 +120,7 @@
 	\rm -f $(DUMMYEXE)
 
     $(DUMMYEXE): $(ALL_OBJECTS)
-	${MAKE_SHARED} -o ${@} $^ $(PLATFORM_LIBRARIES) $(ALLLIBS)
+	${AR} ${FQ_LINK_NAME:.so=.a} ${^} $(TEMPLATESOBJS)
 
     ######  End HP-UX  CC compiler specific stuff #######
   else
@@ -146,12 +149,8 @@
 ########################################################
 
 ${FQ_REAL_NAME}:	$(ALL_OBJECTS)
-	@echo Building ${FQ_REAL_NAME}
-	${MAKE_SHARED} ${LD_SONAME} -o ${@} ${^} $(TEMPLATESOBJS) $(PLATFORM_LIBRARIES) $(EXTRA_LINK_OPTIONS) $(ALLLIBS)
-	@echo symlink ${FQ_SO_NAME}
-	rm -rf ${FQ_SO_NAME}   && ln -s ${FQ_REAL_NAME} ${FQ_SO_NAME}
-	@echo symlink ${FQ_LINK_NAME}
-	rm -rf ${FQ_LINK_NAME} && ln -s ${FQ_SO_NAME} ${FQ_LINK_NAME}
+	@echo Building ${FQ_LINK_NAME:.so=.a}
+	${AR} ${FQ_LINK_NAME:.so=.a} ${^} $(TEMPLATESOBJS)
 
 ## Start OS390 ##
 ifeq (${PLATFORM},OS390)
@@ -200,7 +199,7 @@
 	ln -s ${PREFIX}/lib/${LIBNAME}${VER}.dll.a ${PREFIX}/lib/${LIBNAME}.dll.a
 	ln -s ${PREFIX}/lib/${LIBNAME}${VER}.dll.a ${PREFIX}/lib/libxerces.dll.a
 else
-	$(CP) ${FQ_REAL_NAME} $(PREFIX)/lib
+	$(CP) ${FQ_LINK_NAME:.so=.a} $(PREFIX)/lib
 endif
 ifeq (${PLATFORM},OS390)
 	$(CP) ${LIBNAME}${VER}${OS390SIDEDECK} $(PREFIX)/lib
