Skip to content

Commit

Permalink
Merge pull request #45 from hermit-os/whole-kernel
Browse files Browse the repository at this point in the history
fix: link whole kernel for building
  • Loading branch information
mkroening authored Feb 6, 2025
2 parents d39682f + 4550526 commit 9a016b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ RUN set -eux; \
ENV PATH=$PREFIX/bin:$PATH

COPY --link --from=kernel /kernel/libhermit.a /kernel/libhermit.a
ENV LDFLAGS_FOR_TARGET="-L/kernel -lhermit"
ENV LDFLAGS_FOR_TARGET="-L/kernel -Wl,--whole-archive -lhermit -Wl,--no-whole-archive"

ADD --link https://github.com/hermit-os/newlib.git /newlib
WORKDIR /newlib
Expand Down

0 comments on commit 9a016b7

Please sign in to comment.