linux.mk (7871dc3e) | linux.mk (44c25570) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 210 unchanged lines hidden (view full) --- 219gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) 220 221define gb_LinkTarget__command_dynamiclink 222$(call gb_Helper_abbreviate_dirs,\ 223 mkdir -p $(dir $(1)) && \ 224 $(gb_CXX) \ 225 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 226 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \ | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 210 unchanged lines hidden (view full) --- 219gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) 220 221define gb_LinkTarget__command_dynamiclink 222$(call gb_Helper_abbreviate_dirs,\ 223 mkdir -p $(dir $(1)) && \ 224 $(gb_CXX) \ 225 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 226 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \ |
227 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ | |
228 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 229 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ 230 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ | 227 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 228 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ 229 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ |
230 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ 231 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \ |
|
231 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \ 232 -o $(1)) 233endef 234 235define gb_LinkTarget__command_staticlink 236$(call gb_Helper_abbreviate_dirs,\ 237 mkdir -p $(dir $(1)) && \ 238 $(gb_AR) -rsu $(1) \ --- 176 unchanged lines hidden --- | 232 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \ 233 -o $(1)) 234endef 235 236define gb_LinkTarget__command_staticlink 237$(call gb_Helper_abbreviate_dirs,\ 238 mkdir -p $(dir $(1)) && \ 239 $(gb_AR) -rsu $(1) \ --- 176 unchanged lines hidden --- |