aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-12-11 01:51:48 +0800
committerbapt <bapt@FreeBSD.org>2012-12-11 01:51:48 +0800
commitc6a41436447848c226655a9d640978dca75d93be (patch)
treeb25d238c2021351b8680b198217a18009fb661ad /Mk
parent409a1aa2f82156c1a161b43aad2dc4bc07d0d8ca (diff)
downloadfreebsd-ports-gnome-c6a41436447848c226655a9d640978dca75d93be.tar.gz
freebsd-ports-gnome-c6a41436447848c226655a9d640978dca75d93be.tar.zst
freebsd-ports-gnome-c6a41436447848c226655a9d640978dca75d93be.zip
Adjust the LDFLAGS from USE_NCURSES and USE_OPENSSL to fix build with clang:
This should fix most of the "error: argument unused during compilation: '-rpath=/usr/lib:/usr/local/lib'"
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.ncurses.mk2
-rw-r--r--Mk/bsd.openssl.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mk/bsd.ncurses.mk b/Mk/bsd.ncurses.mk
index 6eda569f7d16..9d743a77f389 100644
--- a/Mk/bsd.ncurses.mk
+++ b/Mk/bsd.ncurses.mk
@@ -102,7 +102,7 @@ NCURSESLIB= ${NCURSESBASE}/lib
.if defined(USE_NCURSES_RPATH)
CFLAGS+= -Wl,-rpath,${NCURSESRPATH}
.endif
-NCURSES_LDFLAGS+= -rpath=${NCURSESRPATH}
+NCURSES_LDFLAGS+= -Wl,-rpath=${NCURSESRPATH}
.if defined(LDFLAGS)
LDFLAGS+=${NCURSES_LDFLAGS}
diff --git a/Mk/bsd.openssl.mk b/Mk/bsd.openssl.mk
index 4282c6342fbf..605826b768dd 100644
--- a/Mk/bsd.openssl.mk
+++ b/Mk/bsd.openssl.mk
@@ -153,7 +153,7 @@ OPENSSLINC= ${OPENSSLBASE}/include
.if defined(USE_OPENSSL_RPATH)
CFLAGS+= -Wl,-rpath,${OPENSSLRPATH}
.endif
-OPENSSL_LDFLAGS+= -rpath=${OPENSSLRPATH}
+OPENSSL_LDFLAGS+= -Wl,-rpath=${OPENSSLRPATH}
LDFLAGS+=${OPENSSL_LDFLAGS}