Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From e18370c204056de799064d8ac72a656eb3745f95 Mon Sep 17 00:00:00 2001 |
| 2 | From: Wang Mingyu <wangmy@cn.fujitsu.com> |
| 3 | Date: Fri, 25 Dec 2020 15:10:58 +0900 |
| 4 | Subject: [PATCH] avoid attr unless wanted |
| 5 | |
| 6 | --- |
| 7 | lib/replace/wscript | 4 +--- |
| 8 | 1 file changed, 1 insertion(+), 3 deletions(-) |
| 9 | |
| 10 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
| 11 | index 0348715..a8554d9 100644 |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 12 | --- a/lib/replace/wscript |
| 13 | +++ b/lib/replace/wscript |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 14 | @@ -967,8 +967,6 @@ def build(bld): |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' |
| 16 | if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' |
| 17 | if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' |
| 18 | - if not bld.CONFIG_SET('HAVE_GETXATTR') or bld.CONFIG_SET('XATTR_ADDITIONAL_OPTIONS'): |
| 19 | - REPLACE_SOURCE += ' xattr.c' |
| 20 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | if not bld.CONFIG_SET('HAVE_CLOSEFROM'): |
| 22 | REPLACE_SOURCE += ' closefrom.c' |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 23 | @@ -983,7 +981,7 @@ def build(bld): |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | # hide_symbols=bld.BUILTIN_LIBRARY('replace'), |
| 25 | private_library=True, |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 26 | provide_builtin_linking=True, |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 27 | - deps='dl attr' + extra_libs) |
| 28 | + deps='dl' + extra_libs) |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 30 | replace_test_cflags = '' |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 31 | if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'): |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 32 | -- |
| 33 | 2.25.1 |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 34 | |