Try to fix janet build on sparc64 by using -fPIC instead of -fpic
This commit is contained in:
parent
588f0a035b
commit
f9f7d97f56
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2019/06/01 01:40:14 jturner Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2019/06/05 00:33:39 jturner Exp $
|
||||
|
||||
COMMENT = functional and imperative programming language
|
||||
CATEGORIES = lang
|
||||
@ -6,6 +6,7 @@ CATEGORIES = lang
|
||||
GH_ACCOUNT = janet-lang
|
||||
GH_PROJECT = janet
|
||||
GH_TAGNAME = v0.6.0
|
||||
REVISION = 0
|
||||
|
||||
SHARED_LIBS += janet 1.0 # 0.0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-Makefile,v 1.4 2019/06/01 01:40:14 jturner Exp $
|
||||
$OpenBSD: patch-Makefile,v 1.5 2019/06/05 00:33:39 jturner Exp $
|
||||
|
||||
Use a date stamp for JANET_BUILD to avoid using git.
|
||||
Replace hardcoded -O2.
|
||||
@ -24,7 +24,7 @@ Index: Makefile
|
||||
DEBUGGER=gdb
|
||||
|
||||
-CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden \
|
||||
+CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic $(FLAGS) -fvisibility=hidden \
|
||||
+CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fPIC $(FLAGS) -fvisibility=hidden \
|
||||
-DJANET_BUILD=$(JANET_BUILD)
|
||||
LDFLAGS=-rdynamic
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user