Skip to content

Commit

Permalink
gzrt patched
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzalab committed Nov 7, 2024
1 parent 1155664 commit ba59d0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 16 additions & 2 deletions recipes/gzrt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,22 @@ if [ -z "$PREFIX" ]; then
exit 1
fi

export CFLAGS="${CFLAGS:-} -I$PREFIX/include"
export LDFLAGS="${LDFLAGS:-} -L$PREFIX/lib"
# Ensure that the CC environment variable is set (for compiler)
if [ -z "$CC" ]; then
echo "CC environment variable not set, but it is required."
exit 1
fi

export CPATH=${PREFIX}/include

# Create a temporary directory
mkdir -p $SRC_DIR/bin

# Create a symlink named cc that points to $CC
ln -sf $(which $CC) $SRC_DIR/bin/cc

# Prepend the temporary directory to the PATH
export PATH=$SRC_DIR/bin:$PATH

if ! make; then
echo "Build failed"
Expand Down
1 change: 0 additions & 1 deletion recipes/gzrt/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ build:
number: 0
run_exports:
- {{ pin_subpackage('gzrt', max_pin="x.x") }}


requirements:
build:
Expand Down

0 comments on commit ba59d0d

Please sign in to comment.