From f16a9f4c6d7b603dc7ddb0bc27c63ad4fefea729 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Thu, 28 Sep 2023 19:53:57 -0400 Subject: [PATCH] Add print-libs for use in other scripts. --- configure | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/configure b/configure index daa324c..a41c18a 100755 --- a/configure +++ b/configure @@ -8,7 +8,7 @@ echo "Build Configuration" echo "-------------------" CFLAGS="-Wall -Wextra -pedantic -std=c89 -O3 -pipe -D_DEFAULT_SOURCE -Isrc/include" -LDFLAGS="-lm -pthread" +LIBS="-lm -pthread" # Set default args for all platforms SCRIPT_ARGS="--lib-rtstub=RtStub --prefix=/usr/local --enable-ld-extra --lib-name=Cytoplasm --lib-version=0.4.0 --static $@" @@ -84,11 +84,11 @@ done if [ -n "$TLS_IMPL" ]; then CFLAGS="${CFLAGS} -DTLS_IMPL=${TLS_IMPL}" - LDFLAGS="${LDFLAGS} ${TLS_LIBS}" + LIBS="${LIBS} ${TLS_LIBS}" fi CFLAGS="${CFLAGS} '-DLIB_NAME=\"${LIB_NAME}\"' '-DLIB_VERSION=\"${LIB_VERSION}\"' ${DEBUG}" -LDFLAGS="${LDFLAGS} ${LD_EXTRA}" +LDFLAGS="${LIBS} ${LD_EXTRA}" # # Makefile generation @@ -139,11 +139,12 @@ CFLAGS = ${CFLAGS} LDFLAGS = ${LDFLAGS} all: ${LIB_NAME} docs tools - docs: $(find_docs "out/man/man3/Cytoplasm-") - tools: $(find_tools "out/bin/") +print-libs: +${TAB}@echo ${LIBS} + format: ${TAB}find . -name '*.c' | while IFS= read -r src; do \\ ${TAB} if indent "\$\$src"; then \\