freebsd.mk (9b09309d) freebsd.mk (9168f84a)
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

--- 242 unchanged lines hidden (view full) ---

251
252define gb_LinkTarget__command_dynamiclink
253$(call gb_Helper_abbreviate_dirs,\
254 mkdir -p $(dir $(1)) && \
255 $(gb_CXX) \
256 $(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
257 $(subst \d,$$,$(RPATH)) \
258 $(T_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

--- 242 unchanged lines hidden (view full) ---

251
252define gb_LinkTarget__command_dynamiclink
253$(call gb_Helper_abbreviate_dirs,\
254 mkdir -p $(dir $(1)) && \
255 $(gb_CXX) \
256 $(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
257 $(subst \d,$$,$(RPATH)) \
258 $(T_LDFLAGS) \
259 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \
260 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
261 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
262 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
263 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
264 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
259 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
260 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
261 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
262 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \
263 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
264 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
265 $(LIBS) \
266 -o $(1))
267endef
268
269define gb_LinkTarget__command_staticlink
270$(call gb_Helper_abbreviate_dirs,\
271 mkdir -p $(dir $(1)) && \
272 $(gb_AR) -rsu $(1) \

--- 184 unchanged lines hidden ---
265 $(LIBS) \
266 -o $(1))
267endef
268
269define gb_LinkTarget__command_staticlink
270$(call gb_Helper_abbreviate_dirs,\
271 mkdir -p $(dir $(1)) && \
272 $(gb_AR) -rsu $(1) \

--- 184 unchanged lines hidden ---