deploy: fix HAVE_CURL verification #62
@@ -176,9 +176,17 @@ jobs:
|
|||||||
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
-lcurl -lpthread -ldl -lm -lssl -lcrypto
|
||||||
|
|
||||||
echo "Relinked: $(ls -lh dist/neuron-landing)"
|
echo "Relinked: $(ls -lh dist/neuron-landing)"
|
||||||
nm dist/neuron-landing | grep -q curl_easy_init \
|
# Verification: if compiled WITHOUT HAVE_CURL the stub string
|
||||||
&& echo "HAVE_CURL verified ✓" \
|
# "not built with HAVE_CURL" is baked into the binary's rodata.
|
||||||
|| { echo "ERROR: curl_easy_init not in binary — HAVE_CURL link failed"; exit 1; }
|
# Its absence confirms curl code is compiled in.
|
||||||
|
if strings dist/neuron-landing | grep -q 'not built with HAVE_CURL'; then
|
||||||
|
echo "ERROR: no-curl stub string still in binary — HAVE_CURL not compiled"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# Confirm curl symbols visible in dynamic table
|
||||||
|
nm -D dist/neuron-landing | grep curl_easy_init || \
|
||||||
|
nm dist/neuron-landing | grep curl || true
|
||||||
|
echo "HAVE_CURL verified ✓"
|
||||||
|
|
||||||
# ── Compile JS client sources ─────────────────────────────────────────
|
# ── Compile JS client sources ─────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user