mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: building on NetBSD (#9953)
This commit is contained in:
parent
1d045e5496
commit
c21df2d44c
11
Makefile
11
Makefile
@ -40,6 +40,11 @@ TCCOS := freebsd
|
|||||||
LDFLAGS += -lexecinfo
|
LDFLAGS += -lexecinfo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(_SYS),NetBSD)
|
||||||
|
TCCOS := netbsd
|
||||||
|
LDFLAGS += -lexecinfo
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef ANDROID_ROOT
|
ifdef ANDROID_ROOT
|
||||||
ANDROID := 1
|
ANDROID := 1
|
||||||
undefine LINUX
|
undefine LINUX
|
||||||
@ -94,10 +99,11 @@ clean:
|
|||||||
rm -rf $(TMPTCC)
|
rm -rf $(TMPTCC)
|
||||||
rm -rf $(VC)
|
rm -rf $(VC)
|
||||||
|
|
||||||
latest_vc: $(VC)/.git/config
|
|
||||||
ifndef local
|
ifndef local
|
||||||
|
latest_vc: $(VC)/.git/config
|
||||||
cd $(VC) && $(GITCLEANPULL)
|
cd $(VC) && $(GITCLEANPULL)
|
||||||
else
|
else
|
||||||
|
latest_vc:
|
||||||
@echo "Using local vc"
|
@echo "Using local vc"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -105,11 +111,12 @@ fresh_vc:
|
|||||||
rm -rf $(VC)
|
rm -rf $(VC)
|
||||||
$(GITFASTCLONE) $(VCREPO) $(VC)
|
$(GITFASTCLONE) $(VCREPO) $(VC)
|
||||||
|
|
||||||
latest_tcc: $(TMPTCC)/.git/config
|
|
||||||
ifndef ANDROID
|
ifndef ANDROID
|
||||||
ifndef local
|
ifndef local
|
||||||
|
latest_tcc: $(TMPTCC)/.git/config
|
||||||
cd $(TMPTCC) && $(GITCLEANPULL)
|
cd $(TMPTCC) && $(GITCLEANPULL)
|
||||||
else
|
else
|
||||||
|
latest_tcc:
|
||||||
@echo "Using local tcc"
|
@echo "Using local tcc"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -386,8 +386,8 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
|
|||||||
if v.pref.os == .linux {
|
if v.pref.os == .linux {
|
||||||
ccoptions.linker_flags << '-ldl'
|
ccoptions.linker_flags << '-ldl'
|
||||||
}
|
}
|
||||||
if v.pref.os == .freebsd {
|
if v.pref.os in [.freebsd, .netbsd] {
|
||||||
// FreeBSD: backtrace needs execinfo library while linking
|
// Free/NetBSD: backtrace needs execinfo library while linking
|
||||||
ccoptions.linker_flags << '-lexecinfo'
|
ccoptions.linker_flags << '-lexecinfo'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user