From 00ee1e92f04a7477cd2c5b1ba9374b4feb5f4f4c Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Fri, 2 Mar 2012 14:27:52 +0000 Subject: [PATCH] Makefile: OSX Update Only add the MacPort dir if it's there. This removes a warning when linking Signed-off-by: Michel Pollet --- Makefile.common | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index d476d83..32edccc 100644 --- a/Makefile.common +++ b/Makefile.common @@ -40,7 +40,11 @@ ifeq (${shell uname}, Darwin) AVR_ROOT := "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/" AVR_INC := ${AVR_ROOT}/avr-4/ AVR := ${AVR_ROOT}/bin/avr- -LFLAGS += -L/opt/local/lib +# Thats for MacPorts libelf +ifeq (${shell test -d /opt/local && echo Exists}, Exists) +IPATH += /opt/local/include +LFLAGS = -L/opt/local/lib/ +endif else AVR_ROOT := /usr/lib/avr AVR_INC := ${AVR_ROOT} -- 2.39.5