linux.mk (b63233d8) linux.mk (c30f6fe3)
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

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

236 $(T_LDFLAGS) \
237 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
238 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
239 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
240 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
241 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
242 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \
243 $(LIBS) \
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

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

236 $(T_LDFLAGS) \
237 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
238 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
239 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
240 $(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) \
241 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
242 -Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \
243 $(LIBS) \
244 -lc \
244 -o $(1))
245endef
246
247define gb_LinkTarget__command_staticlink
248$(call gb_Helper_abbreviate_dirs,\
249 mkdir -p $(dir $(1)) && \
250 $(gb_AR) -rsu $(1) \
251 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \

--- 183 unchanged lines hidden ---
245 -o $(1))
246endef
247
248define gb_LinkTarget__command_staticlink
249$(call gb_Helper_abbreviate_dirs,\
250 mkdir -p $(dir $(1)) && \
251 $(gb_AR) -rsu $(1) \
252 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \

--- 183 unchanged lines hidden ---