freebsd.mk (1ff5b6eb) | freebsd.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 --- 209 unchanged lines hidden (view full) --- 218 219define gb_LinkTarget__command_dynamiclink 220$(call gb_Helper_abbreviate_dirs,\ 221 mkdir -p $(dir $(1)) && \ 222 $(gb_CXX) \ 223 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 224 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \ 225 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ | 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 --- 209 unchanged lines hidden (view full) --- 218 219define gb_LinkTarget__command_dynamiclink 220$(call gb_Helper_abbreviate_dirs,\ 221 mkdir -p $(dir $(1)) && \ 222 $(gb_CXX) \ 223 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 224 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \ 225 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \ |
226 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \ |
|
226 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 227 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ 228 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ 229 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \ 230 -o $(1)) 231endef 232 233define gb_LinkTarget__command_staticlink --- 179 unchanged lines hidden --- | 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 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \ 231 -o $(1)) 232endef 233 234define gb_LinkTarget__command_staticlink --- 179 unchanged lines hidden --- |