]> Nishi Git Mirror - mivfx.git/commitdiff
NetBSDで靜的リンクを可能に
author諏訪子 <suwako@076.moe>
Sat, 25 May 2024 16:59:40 +0000 (01:59 +0900)
committer諏訪子 <suwako@076.moe>
Sat, 25 May 2024 16:59:40 +0000 (01:59 +0900)
Makefile

index 2e2c12c18b6224a22afad79b9e3e10bd87d2c2c4..4ea8d4104c469a1f33a5969f86010d4b8c0f7a83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ dist:
 release-openbsd:
        mkdir -p release/bin
        ${CC} ${CFLAGS} -o release/bin/${NAME}-${VERSION}-openbsd-${UNAME_M} ${FILES}\
-               -static ${LDFLAGS} -lc -lm -liconv -lsndio -lsamplerate -lX11\
+               ${LDFLAGS} -static ${LIBS} -lc -lm -liconv -lsndio -lsamplerate -lX11\
                -lxcb -lXext -lXcursor -lXrender -lXfixes -lXi -lXrandr -lXss -lusbhid -lpthread\
                -ljxl -ljxl_cms -llcms2 -lhwy -lc++ -lc++abi -lbrotlidec\
                -lbrotlicommon -lbrotlienc -lyuv -ltiff -lz -ljpeg -llzma -lzstd -lavif\
@@ -51,6 +51,16 @@ release-openbsd:
                -lngtcp2 -lssl -lcrypto -lnghttp2 -lXau -lXdmcp
        strip release/bin/${NAME}-${VERSION}-openbsd-${UNAME_M}
 
+release-netbsd:
+       mkdir -p release/bin
+       ${CC} ${CFLAGS} -o release/bin/${NAME}-${VERSION}-netbsd-${UNAME_M} ${FILES}\
+               ${LDFLAGS} -static ${LIBS} -lc -lm -lossaudio -lX11 -lxcb -lXau -lXdmcp -lgcc\
+               -lXext -lXcursor -lXrender -lXi -lXfixes -lXrandr -lXss -ldrm -lpci -lgbm -lglapi\
+               -lstdc++ -lexpat -lusbhid -lusb-1.0 -lpthread -lnghttp2 -lidn2 -lunistring\
+               -lintl -lgssapi -lkrb5 -lhx509 -lssl -lcrypto -lcrypt -lasn1 -lcom_err -lroken\
+               -lutil -lwind -lheimbase -lheimntlm -lz
+       strip release/bin/${NAME}-${VERSION}-netbsd-${UNAME_M}
+
 install:
        mkdir -p ${DESTDIR}${PREFIX}/bin\
                ${DESTDIR}${MANPREFIX}/man1\