macosx.mk (7871dc3e) macosx.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

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

249define gb_LinkTarget__command_dynamiclink
250$(call gb_Helper_abbreviate_dirs,\
251 mkdir -p $(dir $(1)) && \
252 DYLIB_FILE=`$(gb_MKTEMP)` && \
253 $(PERL) $(SOLARENV)/bin/macosx-dylib-link-list.pl \
254 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
255 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
256 $(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

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

249define gb_LinkTarget__command_dynamiclink
250$(call gb_Helper_abbreviate_dirs,\
251 mkdir -p $(dir $(1)) && \
252 DYLIB_FILE=`$(gb_MKTEMP)` && \
253 $(PERL) $(SOLARENV)/bin/macosx-dylib-link-list.pl \
254 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
255 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
256 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \
257 $(patsubst lib%.dylib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))) > $${DYLIB_FILE} && \
257 $(patsubst lib%.dylib,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib))))\
258 $(patsubst %,-l%,$(EXTERNAL_LIBS)) \
259 > $${DYLIB_FILE} && \
260
258 $(gb_CXX) \
259 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
260 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
261 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \
262 $(call gb_LinkTarget__get_liblinkflags,$(LINKED_LIBS)) \
263 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
264 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
265 $(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \

--- 193 unchanged lines hidden ---
261 $(gb_CXX) \
262 $(if $(filter Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \
263 $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \
264 $(subst \d,$$,$(RPATH)) $(LDFLAGS) \
265 $(call gb_LinkTarget__get_liblinkflags,$(LINKED_LIBS)) \
266 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
267 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
268 $(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \

--- 193 unchanged lines hidden ---