Merge pull request #1662 from eliezedeck/devel

OpenWrt / uClibc patches
This commit is contained in:
Andreas Rumpf 2014-11-16 20:38:24 +01:00
commit 605b4a819f
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,9 @@ cc = gcc
arm.linux.gcc.exe = "arm-linux-gcc" arm.linux.gcc.exe = "arm-linux-gcc"
arm.linux.gcc.linkerexe = "arm-linux-gcc" arm.linux.gcc.linkerexe = "arm-linux-gcc"
mips.linux.gcc.exe = "mips-openwrt-linux-gcc"
mips.linux.gcc.linkerexe = "mips-openwrt-linux-gcc"
@if not nimfix: @if not nimfix:
cs:partial cs:partial
@end @end

View file

@ -821,6 +821,10 @@ elif not defined(useNimRtl):
# On MacOSX we can arrive here only from fork, so this is safe: # On MacOSX we can arrive here only from fork, so this is safe:
environ = data.sysEnv environ = data.sysEnv
discard execvp(data.sysCommand, data.sysArgs) discard execvp(data.sysCommand, data.sysArgs)
else:
when defined(uClibc):
# uClibc environment (OpenWrt included) doesn't have the full execvpe
discard execve(data.sysCommand, data.sysArgs, data.sysEnv)
else: else:
discard execvpe(data.sysCommand, data.sysArgs, data.sysEnv) discard execvpe(data.sysCommand, data.sysArgs, data.sysEnv)
else: else: