mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-19 00:32:12 +00:00
31 lines
720 B
Makefile
Executable File
31 lines
720 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# output every command that modifies files on the build system.
|
|
#export DH_VERBOSE = 1
|
|
|
|
include /usr/share/dpkg/buildflags.mk
|
|
|
|
export NM = llvm-nm-19
|
|
export AR = llvm-ar-19
|
|
export CC = clang-19
|
|
|
|
# stack protector not yet supported, see
|
|
# https://github.com/CraneStation/wasi-libc/issues/157
|
|
# https://bugs.debian.org/1051815
|
|
export EXTRA_CFLAGS = $(CFLAGS) $(LDFLAGS) -fno-stack-protector -fcf-protection=none
|
|
|
|
%:
|
|
dh $@
|
|
|
|
.PHONY: build
|
|
build:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
dh_auto_build -- finish
|
|
dh_auto_build -- WASI_SNAPSHOT=p2 finish
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- INSTALL_DIR=$(CURDIR)/debian/tmp/usr
|
|
dh_auto_install -- INSTALL_DIR=$(CURDIR)/debian/tmp/usr WASI_SNAPSHOT=p2
|