From: Michael D. Lowis Date: Thu, 18 Apr 2019 00:53:20 +0000 (-0400) Subject: updated build script X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=9d33cc334a80b404834cc1344464984dee4afd3e;p=proto%2Fpick.git updated build script --- 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[@]}"