]> git.mdlowis.com Git - proto/pick.git/commitdiff
updated build script
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 18 Apr 2019 00:53:20 +0000 (20:53 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 18 Apr 2019 00:53:20 +0000 (20:53 -0400)
build.sh

index 2bcd2c2d454c6badd608e521cefc68de2d6351fc..c592cbc923d1a13e6247e16e1644d57dfa125368 100755 (executable)
--- 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[@]}"