vlang: Propagate build inputs, add $LDFLAGS (#70466)
This commit is contained in:
parent
837cc0767d
commit
795b1555a8
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
buildInputs = [ glfw freetype openssl ]
|
propagatedBuildInputs = [ glfw freetype openssl ]
|
||||||
++ stdenv.lib.optional stdenv.hostPlatform.isUnix upx;
|
++ stdenv.lib.optional stdenv.hostPlatform.isUnix upx;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
cc -std=gnu11 $CFLAGS -w -o v $vc/v.c -lm $LDFLAGS
|
cc -std=gnu11 $CFLAGS -w -o v $vc/v.c -lm $LDFLAGS
|
||||||
./v -prod -cflags `$CFLAGS` -o v compiler
|
./v -prod -cflags `$CFLAGS` -o v compiler
|
||||||
# Exclude thirdparty/vschannel as it is windows-specific.
|
# Exclude thirdparty/vschannel as it is windows-specific.
|
||||||
find thirdparty -path thirdparty/vschannel -prune -o -type f -name "*.c" -execdir cc -std=gnu11 $CFLAGS -w -c {} ';'
|
find thirdparty -path thirdparty/vschannel -prune -o -type f -name "*.c" -execdir cc -std=gnu11 $CFLAGS -w -c {} $LDFLAGS ';'
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user