ICU-303 add hpux_junk_obj for hpux to run without warning

X-SVN-Rev: 898
This commit is contained in:
Markus Scherer 2000-03-07 00:07:06 +00:00
parent 4fde6a564b
commit 0ed984343c

View File

@ -200,11 +200,22 @@ build-testdlls: $(TESTDATADLL) $(BASEDATADLL) $(BASETESTDATADLL)
%_brk.c: %.brk
(cd genccode ; ./genccode ../$< )
## Note: this generates a dummy C++ file to cause the HPUX CC linker
## to load exception handling (when requested..)
hpux_junk_obj.cpp:
echo "void to_emit_cxx_stuff_in_the_linker(){}" >> hpux_junk_obj.cpp
hpux_junk_obj.o: hpux_junk_obj.cpp
$(COMPILE.cc) -o $@ $<
# strip is optional
# -$(STRIP) $@
$(COMMONDLL): $(OBJDATAFILES)
# HPUX_JUNK_OBJ is usually unset except by mh-hpux-cc
$(COMMONDLL): $(OBJDATAFILES) $(HPUX_JUNK_OBJ)
$(SHLIB.c) -o $@ $^
-ls -l $@