diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2025-01-17 17:55:21 +0400 |
|---|---|---|
| committer | pluknet <pluknet@nginx.com> | 2025-02-05 20:40:47 +0400 |
| commit | a43f1272c38ad1c85f6d0919a5588ad47a5322e1 (patch) | |
| tree | 289e74af36235a82d6be4f559cd124a2f3e46600 /auto/lib/libatomic/make | |
| parent | 2e42c1e29e447c6716802bf62a7a40a390444e6b (diff) | |
| download | nginx-a43f1272c38ad1c85f6d0919a5588ad47a5322e1.tar.gz nginx-a43f1272c38ad1c85f6d0919a5588ad47a5322e1.tar.bz2 | |
Configure: fixed --with-libatomic=DIR with recent libatomic_ops.
The build location of the resulting libatomic_ops.a was changed in v7.4.0
after converting libatomic_ops to use libtool. The fix is to use library
from the install path, this allows building with both old and new versions.
Initially reported here:
https://mailman.nginx.org/pipermail/nginx/2018-April/056054.html
Diffstat (limited to 'auto/lib/libatomic/make')
| -rw-r--r-- | auto/lib/libatomic/make | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/auto/lib/libatomic/make b/auto/lib/libatomic/make index c90318ea1..530c746a6 100644 --- a/auto/lib/libatomic/make +++ b/auto/lib/libatomic/make @@ -3,14 +3,19 @@ # Copyright (C) Nginx, Inc. + case $NGX_LIBATOMIC in + /*) ngx_prefix="$NGX_LIBATOMIC/build" ;; + *) ngx_prefix="$PWD/$NGX_LIBATOMIC/build" ;; + esac + cat << END >> $NGX_MAKEFILE -$NGX_LIBATOMIC/src/libatomic_ops.a: $NGX_LIBATOMIC/Makefile - cd $NGX_LIBATOMIC && \$(MAKE) +$NGX_LIBATOMIC/build/lib/libatomic_ops.a: $NGX_LIBATOMIC/Makefile + cd $NGX_LIBATOMIC && \$(MAKE) && \$(MAKE) install $NGX_LIBATOMIC/Makefile: $NGX_MAKEFILE cd $NGX_LIBATOMIC \\ && if [ -f Makefile ]; then \$(MAKE) distclean; fi \\ - && ./configure + && ./configure --prefix=$ngx_prefix END |
