Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 12:12:00 +0000
From:      Matt Burke <mattblists@icritical.com>
To:        <freebsd-ports@freebsd.org>
Cc:        garga@FreeBSD.org
Subject:   devel/lua-sysctl broken with clang (patch)
Message-ID:  <50FFD390.7040906@icritical.com>

next in thread | raw e-mail | index | archive | help
===>  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50FFD390.7040906>