From 9d33cc334a80b404834cc1344464984dee4afd3e Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 17 Apr 2019 20:53:20 -0400 Subject: [PATCH] updated build script --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 2bcd2c2..c592cbc 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/bin/bash name=pick +IFS=" " read -r -a cflags <<< "${CFLAGS:-}" +IFS=" " read -r -a ldflags <<< "${LDFLAGS:-}" set -x -gcc $CFLAGS -D_XOPEN_SOURCE=700 -I. -o $name *.c $LDFLAGS +gcc "${cflags[@]}" -D_XOPEN_SOURCE=700 -I. -o $name ./*.c "${ldflags[@]}" -- 2.54.0