diff options
Diffstat (limited to 'src/compil.sh')
-rwxr-xr-x | src/compil.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compil.sh b/src/compil.sh index b0a1bad..d913674 100755 --- a/src/compil.sh +++ b/src/compil.sh @@ -10,7 +10,7 @@ AMDAPP_PATH="/opt/AMDAPP" DEFINES="" INCLUDES="" -LIBS="" +LIBS="-lrt" # OpenCL if [ -d "$AMDAPP_PATH/include" ] @@ -32,8 +32,8 @@ fi #set +x function build_cxx() { - echo "$PS4$CXX \$DEFINES \$INCLUDES -o $BUILD_PATH/$1 -c $2" - $CXX $DEFINES $INCLUDES -o $BUILD_PATH/$1 -c $2 + echo "$PS4$CXX \$DEFINES \$INCLUDES -o $BUILD_PATH/$1 -c $2 \$LIBS" + $CXX $DEFINES $INCLUDES -o $BUILD_PATH/$1 -c $2 $LIBS } function link_cxx() { |