Forgot that static linking breaks OpenSSL and therefore uploads, back to dynamic until I can think of a fix. Will work on it later
This commit is contained in:
@@ -125,8 +125,12 @@ jobs:
|
|||||||
TLS_CFLAGS="-I$GITHUB_WORKSPACE/openssl-static/include" \
|
TLS_CFLAGS="-I$GITHUB_WORKSPACE/openssl-static/include" \
|
||||||
TLS_LDLIBS="$OPENSSL_LIBDIR/libssl.a $OPENSSL_LIBDIR/libcrypto.a $EXTRA_STATIC_LIBS"
|
TLS_LDLIBS="$OPENSSL_LIBDIR/libssl.a $OPENSSL_LIBDIR/libcrypto.a $EXTRA_STATIC_LIBS"
|
||||||
file "dist/fossbench-${{ matrix.target }}"
|
file "dist/fossbench-${{ matrix.target }}"
|
||||||
if ! file "dist/fossbench-${{ matrix.target }}" | grep -q 'statically linked'; then
|
if ! file "dist/fossbench-${{ matrix.target }}" | grep -q 'dynamically linked'; then
|
||||||
echo 'Linux release is dynamically linked' >&2
|
echo 'Linux release uses static glibc, which is unsafe with NSS-based DNS' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if readelf -d "dist/fossbench-${{ matrix.target }}" | grep -E 'NEEDED.*lib(ssl|crypto)'; then
|
||||||
|
echo 'Linux release uses dynamic OpenSSL' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ "${{ matrix.target }}" != linux-ppc32be ]; then
|
if [ "${{ matrix.target }}" != linux-ppc32be ]; then
|
||||||
|
|||||||
@@ -118,23 +118,23 @@ windows-amd64: $(DIST)/fossbench-windows-amd64.exe
|
|||||||
windows-i386: $(DIST)/fossbench-windows-i386.exe
|
windows-i386: $(DIST)/fossbench-windows-i386.exe
|
||||||
|
|
||||||
$(DIST)/fossbench-linux-arm64: $(DRIVER) $(ASM_ARM64) | $(DIST)
|
$(DIST)/fossbench-linux-arm64: $(DRIVER) $(ASM_ARM64) | $(DIST)
|
||||||
$(CC_ARM64) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) -static $(LDFLAGS) -o $@ $(DRIVER) $(ASM_ARM64) $(LDLIBS)
|
$(CC_ARM64) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) $(LDFLAGS) -o $@ $(DRIVER) $(ASM_ARM64) $(LDLIBS)
|
||||||
@echo "built $@"
|
@echo "built $@"
|
||||||
|
|
||||||
$(DIST)/fossbench-linux-amd64: $(DRIVER) $(ASM_AMD64) | $(DIST)
|
$(DIST)/fossbench-linux-amd64: $(DRIVER) $(ASM_AMD64) | $(DIST)
|
||||||
$(CC_AMD64) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) -static $(LDFLAGS) -o $@ $(DRIVER) $(ASM_AMD64) $(LDLIBS)
|
$(CC_AMD64) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) $(LDFLAGS) -o $@ $(DRIVER) $(ASM_AMD64) $(LDLIBS)
|
||||||
@echo "built $@"
|
@echo "built $@"
|
||||||
|
|
||||||
$(DIST)/fossbench-linux-i386: $(DRIVER) $(ASM_I386) | $(DIST)
|
$(DIST)/fossbench-linux-i386: $(DRIVER) $(ASM_I386) | $(DIST)
|
||||||
$(CC_I386) -m32 -march=pentium4 -fno-pie -no-pie $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) -static $(LDFLAGS) -o $@ $(DRIVER) $(ASM_I386) $(LDLIBS)
|
$(CC_I386) -m32 -march=pentium4 -fno-pie -no-pie $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) $(LDFLAGS) -o $@ $(DRIVER) $(ASM_I386) $(LDLIBS)
|
||||||
@echo "built $@"
|
@echo "built $@"
|
||||||
|
|
||||||
$(DIST)/fossbench-linux-ppc32be: $(DRIVER) $(ASM_PPC32) | $(DIST)
|
$(DIST)/fossbench-linux-ppc32be: $(DRIVER) $(ASM_PPC32) | $(DIST)
|
||||||
$(CC_PPC32BE) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) -static $(LDFLAGS) -o $@ $(DRIVER) $(ASM_PPC32) $(LDLIBS)
|
$(CC_PPC32BE) $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) $(LDFLAGS) -o $@ $(DRIVER) $(ASM_PPC32) $(LDLIBS)
|
||||||
@echo "built $@"
|
@echo "built $@"
|
||||||
|
|
||||||
$(DIST)/fossbench-linux-ppc64be: $(DRIVER) $(ASM_PPC64) | $(DIST)
|
$(DIST)/fossbench-linux-ppc64be: $(DRIVER) $(ASM_PPC64) | $(DIST)
|
||||||
$(CC_PPC64BE) -mcpu=970 -maltivec $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) -static $(LDFLAGS) -o $@ $(DRIVER) $(ASM_PPC64) $(LDLIBS)
|
$(CC_PPC64BE) -mcpu=970 -maltivec $(CFLAGS) $(TLS_CFLAGS) $(PTHREAD) $(LDFLAGS) -o $@ $(DRIVER) $(ASM_PPC64) $(LDLIBS)
|
||||||
@echo "built $@"
|
@echo "built $@"
|
||||||
|
|
||||||
$(DIST)/fossbench-macos-arm64: $(DRIVER) $(ASM_ARM64) | $(DIST)
|
$(DIST)/fossbench-macos-arm64: $(DRIVER) $(ASM_ARM64) | $(DIST)
|
||||||
|
|||||||
+6
-2
@@ -157,8 +157,12 @@ extern uint64_t fb_chase(void **ptrs, uint64_t steps);
|
|||||||
# define CHASE_DETAIL "dependent-load pointer chase, 16 MiB"
|
# define CHASE_DETAIL "dependent-load pointer chase, 16 MiB"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MIN_SECONDS 2.0 /* Minimum run time. */
|
#ifndef MIN_SECONDS
|
||||||
#define REPEATS 3 /* Number of tries. */
|
# define MIN_SECONDS 2.0 /* Minimum run time. */
|
||||||
|
#endif
|
||||||
|
#ifndef REPEATS
|
||||||
|
# define REPEATS 3 /* Number of tries. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Numbers used to calculate scores. */
|
/* Numbers used to calculate scores. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user