devel/lua-sysctl broken with clang (patch)

Matt Burke mattblists at icritical.com
Wed Jan 23 12:19:01 UTC 2013


===>  Building for lua-sysctl-0.2
install -m 755 -d sysctl
cc  -shared -soname lua_sysctl -O2 -pipe -fno-omit-frame-pointer
-fno-strict-aliasing -fno-omit-frame-pointer  -Wall -Wextra -fPIC
`pkg-config --cflags lua-5.1` -o sysctl/core.so src/lua_sysctl.c
cc: error: no such file or directory: 'lua_sysctl'
*** [sysctl/core.so] Error code 1

Stop in /usr/ports/devel/lua-sysctl/work/lua-syscl-0.2.
*** [do-build] Error code 1


This fixes it:


--- Makefile.orig	2013-01-23 12:05:52.459795869 +0000
+++ Makefile	2013-01-23 12:08:13.371029152 +0000
@@ -2,7 +2,7 @@
 SODIR  = sysctl
 SOLIB  = ${SODIR}/core.so

-LDFLAGS += -shared -soname ${SONAME}
+LDFLAGS += -shared -Wl,-soname,${SONAME}
 CFLAGS  += -Wall -Wextra -fPIC `pkg-config --cflags lua-5.1`

 all: ${SOLIB}


-- 
Sorry for the following...
The information contained in this message is confidential and intended for the addressee only. If you have received this message in error, or there are any problems with its content, please contact the sender. 

iCritical is a trading name of Critical Software Ltd. Registered in England: 04909220.
Registered Office: IC2, Keele Science Park, Keele, Staffordshire, ST5 5NH.

This message has been scanned for security threats by iCritical. www.icritical.com



More information about the freebsd-ports mailing list