Merge branch 'master' of git://anongit.freedesktop.org/libreoffice/bootstrap
This commit is contained in:
commit
a6677859fa
4 changed files with 11 additions and 7 deletions
|
@ -1995,7 +1995,7 @@ if test -z "$GNUMAKE"; then
|
|||
fi
|
||||
|
||||
AC_MSG_CHECKING([the GNU make version])
|
||||
_make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
|
||||
_make_version=`$GNUMAKE --version | grep GNU | grep -v GPL | $SED -e 's@^[[^0-9]]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
|
||||
_make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
|
||||
if test "$_make_longver" -ge "038100" ; then
|
||||
AC_MSG_RESULT([$GNUMAKE $_make_version])
|
||||
|
@ -2051,7 +2051,7 @@ if test "$GCC" = "yes" ; then
|
|||
#include <stdio.h>
|
||||
|
||||
int main(char argc, char** argv) {
|
||||
printf ("hello world\n");
|
||||
printf ("");
|
||||
return 0;
|
||||
}
|
||||
], HAVE_LD_HASH_STYLE=TRUE; WITH_LINKER_HASH_STYLE=$hash_style, HAVE_LD_HASH_STYLE=FALSE)
|
||||
|
|
|
@ -40,7 +40,7 @@ endif
|
|||
# gb_CppunitTest_TARGETTYPE
|
||||
# gb_CppunitTest_get_filename
|
||||
gb_CppunitTest_CPPTESTTARGET := $(call gb_Executable_get_target,cppunit/cppunittester)
|
||||
gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) $(gb_CppunitTest_GDBTRACE) $(gb_CppunitTest_CPPTESTTARGET)
|
||||
gb_CppunitTest_CPPTESTCOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) $(gb_CppunitTest_GDBTRACE) STAR_RESOURCEPATH=$(dir $(call gb_ResTarget_get_outdir_target,example)) $(gb_CppunitTest_CPPTESTTARGET)
|
||||
gb_CppunitTest__get_linktargetname = CppunitTest/$(call gb_CppunitTest_get_filename,$(1))
|
||||
|
||||
.PHONY : $(call gb_CppunitTest_get_clean_target,%)
|
||||
|
@ -53,7 +53,7 @@ $(call gb_CppunitTest_get_target,%) :| $(gb_CppunitTest_CPPTESTTARGET)
|
|||
$(call gb_Output_announce,$*,$(true),CUT,2)
|
||||
$(call gb_Helper_abbreviate_dirs_native,\
|
||||
mkdir -p $(dir $@) && \
|
||||
$(gb_CppunitTest_CPPTESTCOMMAND) $(call gb_LinkTarget_get_target,CppunitTest/$(call gb_CppunitTest_get_libfilename,$*)) > $@.log 2>&1 || (cat $@.log && false))
|
||||
$(gb_CppunitTest_CPPTESTCOMMAND) $(call gb_LinkTarget_get_target,CppunitTest/$(call gb_CppunitTest_get_libfilename,$*)) $(ARGS) > $@.log 2>&1 || (cat $@.log && false))
|
||||
|
||||
define gb_CppunitTest_CppunitTest
|
||||
$(call gb_CppunitTest__CppunitTest_impl,$(1),$(call gb_CppunitTest__get_linktargetname,$(1)))
|
||||
|
@ -72,10 +72,16 @@ $(call gb_LinkTarget_set_defs,$(2), \
|
|||
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_LinkTarget_get_target,$(2))
|
||||
$(call gb_CppunitTest_get_clean_target,$(1)) : $(call gb_LinkTarget_get_clean_target,$(2))
|
||||
$(call gb_CppunitTest_CppunitTest_platform,$(1),$(2),$(gb_CppunitTest_DLLDIR)/$(call gb_CppunitTest_get_libfilename,$(1)))
|
||||
$(call gb_CppunitTest_get_target,$(1)) : ARGS :=
|
||||
$$(eval $$(call gb_Module_register_target,$(call gb_CppunitTest_get_target,$(1)),$(call gb_CppunitTest_get_clean_target,$(1))))
|
||||
|
||||
endef
|
||||
|
||||
define gb_CppunitTest_set_args
|
||||
$(call gb_CppunitTest_get_target,$(1)) : ARGS := $(2)
|
||||
|
||||
endef
|
||||
|
||||
define gb_CppunitTest__forward_to_Linktarget
|
||||
gb_CppunitTest_$(1) = $$(call gb_LinkTarget_$(1),$$(call gb_CppunitTest__get_linktargetname,$$(1)),$$(2),$$(3))
|
||||
|
||||
|
|
|
@ -592,7 +592,6 @@ endef
|
|||
|
||||
define gb_LinkTarget_add_linktarget_objects
|
||||
$(call gb_LinkTarget_get_target,$(1)) : $(foreach linktarget,$(2),$(call gb_LinkTarget_get_target,$(linktarget)))
|
||||
$(info gb_LinkTarget_add_linktarget_objects,$(1),$(2))
|
||||
$(call gb_LinkTarget_get_target,$(1)) : EXTRAOBJECTLISTS += $(foreach linktarget,$(2),$(call gb_LinkTarget_get_objects_list,$(linktarget)))
|
||||
|
||||
endef
|
||||
|
@ -602,7 +601,6 @@ ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2)))
|
|||
$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL))
|
||||
$$(eval $$(call gb_Output_error,Cannot import objects library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk))
|
||||
endif
|
||||
$(info gb_LinkTarget_add_library_objects,$(1),$(2))
|
||||
$(call gb_LinkTarget_add_linktarget_objects,$(1),$(foreach lib,$(2),$(call gb_Library_get_linktargetname,$(lib))))
|
||||
|
||||
endef
|
||||
|
|
|
@ -128,7 +128,7 @@ gb_LinkTarget_LDFLAGS += \
|
|||
|
||||
ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
|
||||
gb_LinkTarget_LDFLAGS += \
|
||||
-Wl,--hash-style=both \
|
||||
-Wl,--hash-style=$(WITH_LINKER_HASH_STYLE) \
|
||||
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue