Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b026a08

Browse files
committed
Slightly less ugly hacks to build nsjail
1 parent 47482ae commit b026a08

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Dockerfile.nsjail-3.0

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ cp /build/patches/queue.h /output/include/sys && \
2121
cp bin/protoc /output/bin && \
2222
cp -r kafel-*/* nsjail-*/kafel && \
2323
cd nsjail-* && \
24-
find /output && \
2524
sed -e 's/-Werror//' -e 's/-pie//' -e 's/-fPIE//' -i Makefile && \
2625
sed -e 's/YYUSE/YY_USE/' -i kafel/src/parser.y && \
2726
sed -e 's/^TARGET=.*/TARGET=${STATIC_TARGET}/' -i kafel/src/Makefile && \
2827
export CC="$MUSL_TARGET-gcc -static" && \
29-
export CXX="$MUSL_TARGET-g++ -static -static-libstdc++" && \
30-
export CFLAGS="-I/output/include -I/output/include/libnl3 -I/output/include/google -static -frandom-seed=pulse" && \
31-
export COMMON_FLAGS="-static -I/output/include -I/output/include/libnl3 -I/output/include/google" && \
28+
export CXX="$MUSL_TARGET-g++ -static" && \
29+
export CFLAGS="-I/output/include -I/output/include/libnl3 -I/output/include/google -frandom-seed=pulse" && \
30+
export CXXFLAGS="-static-libstdc++ ${CFLAGS}" && \
3231
export LDFLAGS="-L/output/lib -pthread -lprotobuf -lnl-route-3 -lnl-3" && \
3332
make -j$(nproc) && \
3433
${MUSL_TARGET}-strip nsjail

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /