Skip to content

Build Bioconductor msa project #14

Answered by martin-g
martin-g asked this question in Q&A
Discussion options

You must be logged in to vote

See https://github.com/UBod/msa/blob/33868780db208908d9dbbac04a626e05fb31d4e1/src/Makevars#L1
Here the logic sets the special PKG_LIBS environment variable that is used by R to add the linker options, see https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Using-Makevars:

Makevars can also be used to set flags for the linker, for example ‘-L’ and ‘-l’ options, via PKG_LIBS. 

With

+echo -e '\nPKG_LIBS=-Wl,--whole-archive ./libgc.a ./libClustalW.a ./libClustalOmega.a ./libMuscle.a  -Wl,--no-whole-archive -lpthread_nonshared -lpthread' >> ./src/Makevars

I just set the same linker options as the original ones and added -lpthread. This way CentOS 7 aarch64 also adds the libpthread lib…

Replies: 2 comments 31 replies

Comment options

You must be logged in to vote
20 replies
@martin-g
Comment options

martin-g Sep 18, 2023
Maintainer Author

@martin-g
Comment options

martin-g Sep 18, 2023
Maintainer Author

@yangxingyu588
Comment options

@martin-g
Comment options

martin-g Sep 19, 2023
Maintainer Author

@martin-g
Comment options

martin-g Sep 20, 2023
Maintainer Author

Comment options

You must be logged in to vote
11 replies
@martin-g
Comment options

martin-g Sep 22, 2023
Maintainer Author

Answer selected by martin-g
@yangxingyu588
Comment options

@martin-g
Comment options

martin-g Sep 25, 2023
Maintainer Author

@yangxingyu588
Comment options

@martin-g
Comment options

martin-g Oct 11, 2023
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants