{"thread":{"id":"3495","subject":"[PATCH] Darwin: Ignore missing /sw/lib","startedAt":"2006-02-28T14:03:48Z","lastAt":"2006-02-28T14:03:48Z","messageCount":1,"participants":["Shawn Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"16905","messageId":"20060228140348.GA25504@spearce.org","threadId":"3495","inReplyTo":null,"subject":"[PATCH] Darwin: Ignore missing /sw/lib","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-02-28T14:03:48Z","receivedAt":"2006-02-28T14:03:48Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"When on Darwin platforms don't include Fink or DarwinPorts\ninto the link path unless the related library directory\nis actually present.  The linker on MacOS 10.4 complains\nif it is given a directory which does not exist.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n\n---\n I don't have Fink installed, consequently the linker is whining\n about /sw/lib not existing every time I link a GIT executable.\n I'd rather not see complaints from the linker unless they are\n important.\n\n Makefile |   12 ++++++++----\n 1 files changed, 8 insertions(+), 4 deletions(-)\n\nbase f3a4ec48e402a7b49d410bdcb23470e9723788b0\nlast 84434f9549d56e522a2eb4de370100f0a6e5e041\ndiff --git a/Makefile b/Makefile\nindex 6c59cee41490d4bfba0fb43102555d8de3371d01..19578fc93a60cc41c31883ceac37a0f1ec4202d7 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -223,11 +223,15 @@ ifeq ($(uname_S),Darwin)\n \tNEEDS_SSL_WITH_CRYPTO = YesPlease\n \tNEEDS_LIBICONV = YesPlease\n \t## fink\n-\tALL_CFLAGS += -I/sw/include\n-\tALL_LDFLAGS += -L/sw/lib\n+\tifeq ($(shell test -d /sw/lib && echo y),y)\n+\t\tALL_CFLAGS += -I/sw/include\n+\t\tALL_LDFLAGS += -L/sw/lib\n+\tendif\n \t## darwinports\n-\tALL_CFLAGS += -I/opt/local/include\n-\tALL_LDFLAGS += -L/opt/local/lib\n+\tifeq ($(shell test -d /opt/local/lib && echo y),y)\n+\t\tALL_CFLAGS += -I/opt/local/include\n+\t\tALL_LDFLAGS += -L/opt/local/lib\n+\tendif\n endif\n ifeq ($(uname_S),SunOS)\n \tNEEDS_SOCKET = YesPlease\n-- \n1.2.3.gf3a4\n"}]}