Skip to content

Commit

Permalink
fix configure, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Dec 14, 2024
1 parent 0b5f5ef commit e6c2d8f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cleanup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

rm -f src/htslib-1.19.1/config.h src/*.o src/*.so src/*.dll src/*.dylib
cd src/htslib-1.19.1/ && make clean && cd -
rm -f src/htslib-1.21/config.h src/*.o src/*.so src/*.dll src/*.dylib
cd src/htslib-1.21/ && make clean && cd -
4 changes: 2 additions & 2 deletions cleanup.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

rm -f src/htslib-1.18/config.h src/*.o src/*.so src/*.dll src/*.dylib
cd src/htslib-1.18/ && make clean && cd -
rm -f src/htslib-1.21/config.h src/*.o src/*.so src/*.dll src/*.dylib
cd src/htslib-1.21/ && make clean && cd -
2 changes: 1 addition & 1 deletion configure.win
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

HTSLIB_DIR="src/htslib-1.21"
echo "Configuring HTSlib in $HTSLIB_DIR"
cd $HTSLIB_DIR && ./configure && make
cd $HTSLIB_DIR && ./configure --without-libdeflate && make
8 changes: 4 additions & 4 deletions src/htslib-1.21/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

CC = gcc
AR = ar
RANLIB = ranlib
CC := $(shell ${R_HOME}/bin/R CMD config CC)
AR := $(shell ${R_HOME}/bin/R CMD config AR)
RANLIB := $(shell ${R_HOME}/bin/R CMD config RANLIB)

# Default libraries to link if configure is not used
htslib_default_libs = -lz -lm -lbz2 -llzma -lcurl
Expand All @@ -35,7 +35,7 @@ CPPFLAGS =
# TODO: probably update cram code to make it compile cleanly with -Wc++-compat
# For testing strict C99 support add -std=c99 -D_XOPEN_SOURCE=600
#CFLAGS = -g -Wall -O2 -pedantic -std=c99 -D_XOPEN_SOURCE=600
CFLAGS = -g -Wall -O2 -fvisibility=hidden
CFLAGS = -g -Wall -O2 -fvisibility=hidden -fPIC
EXTRA_CFLAGS_PIC = -fpic
TARGET_CFLAGS =
LDFLAGS = -fvisibility=hidden
Expand Down

0 comments on commit e6c2d8f

Please sign in to comment.