Skip to content

Commit

Permalink
gpaw: add LDFLAGS & CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
dellelce committed Apr 30, 2024
1 parent 736fd5f commit 403fe2e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/gpaw/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ build_gpaw_core()
logFile=$(logger_file ${id}_make)
echo "Running pip install..."
{
pip3 install .

rc_pipinstall=$?
LDFLAGS="-L${prefix}/lib -L/usr/lib -Wl,-rpath=${prefix}/lib -Wl,-rpath=/usr/lib" \
CFLAGS="-I${prefix}/include" \
pip3 install .
rc_pipinstall=$?
} > ${logFile} 2>&1
[ $rc_make -ne 0 ] && { cd "$cwd"; time_end; cat "${logFile}"; echo ; echo "Failed make for ${id}"; return $rc_make; }
[ $rc_pipinstall -ne 0 ] && { cd "$cwd"; time_end; cat "${logFile}"; echo ; echo "Failed pip install for ${id}"; return $rc_make; }

cd "$WORKDIR"

Expand Down

0 comments on commit 403fe2e

Please sign in to comment.