Use cc to link shared library to make sure crtbeginS.o gets linked in.

ok ajacoutot@, jca@
This commit is contained in:
kettenis 2015-05-22 09:17:35 +00:00
parent 16f7014184
commit fadf553350
2 changed files with 6 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.16 2013/03/11 10:50:11 espie Exp $
# $OpenBSD: Makefile,v 1.17 2015/05/22 09:17:35 kettenis Exp $
SHARED_ONLY= Yes
COMMENT= lua binding of posix and pcre regex libraries
DISTNAME= lrexlib-2.4.0
PKGNAME= luarexlib-2.4.0
REVISION= 4
REVISION= 5
CATEGORIES= devel
MASTER_SITES= http://luaforge.net/frs/download.php/3599/

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-src_common_mak,v 1.1 2009/09/09 18:02:01 jolan Exp $
$OpenBSD: patch-src_common_mak,v 1.2 2015/05/22 09:17:35 kettenis Exp $
--- src/common.mak.orig Sat Jun 14 20:11:08 2008
+++ src/common.mak Wed Sep 9 12:13:00 2009
+++ src/common.mak Fri May 22 11:13:12 2015
@@ -3,11 +3,11 @@
V = 2.4
@ -9,8 +9,9 @@ $OpenBSD: patch-src_common_mak,v 1.1 2009/09/09 18:02:01 jolan Exp $
+CFLAGS+= $(MYCFLAGS) $(DEFS) $(INC)
TRG_AR = lib$(TRG).a
TRG_SO = $(TRG).so
LD = ld
-LD = ld
-LDFLAGS= -shared
+LD = cc
+LDFLAGS= -fPIC -shared
all: $(TRG_AR) $(TRG_SO)