fix: soul-demo emit_metric linker error — rebuild from source, compile with el_runtime.c #7
+4
-1
@@ -44,12 +44,15 @@ RUN cc -O2 -rdynamic \
|
|||||||
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
||||||
|
|
||||||
# ── Build soul-demo ───────────────────────────────────────────────────────────
|
# ── Build soul-demo ───────────────────────────────────────────────────────────
|
||||||
|
# Compile soul-demo.c with el_runtime.c directly (not el_runtime.o) so that
|
||||||
|
# all runtime symbols — including emit_metric, emit_log, trace_span_* — are
|
||||||
|
# always resolved from the staged source rather than a cached object file.
|
||||||
COPY dist/soul-demo.c ./
|
COPY dist/soul-demo.c ./
|
||||||
COPY dist/vessel_stubs.c ./
|
COPY dist/vessel_stubs.c ./
|
||||||
|
|
||||||
RUN cc -O2 -rdynamic \
|
RUN cc -O2 -rdynamic \
|
||||||
-o soul-demo \
|
-o soul-demo \
|
||||||
soul-demo.c vessel_stubs.c el_runtime.o \
|
soul-demo.c vessel_stubs.c el_runtime.c \
|
||||||
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
||||||
|
|
||||||
# ── Stage 2: runtime image ────────────────────────────────────────────────────
|
# ── Stage 2: runtime image ────────────────────────────────────────────────────
|
||||||
|
|||||||
Vendored
+121
-122
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user