mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00

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
22 lines
551 B
Plaintext
22 lines
551 B
Plaintext
|
|
# Copyright (C) Igor Sysoev
|
|
# 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/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 --prefix=$ngx_prefix
|
|
|
|
END
|