Commit 2394a9f
committed
yum: Disable package-note-file to remove unnecessary linker flag (#877)
The user can refer the Ruby configure results through
`RbConfig::CONFIG`.
`RbConfig::CONFIG` is mainly used when installing gems which has C
extension.
If flags remain that use linker scripts that do not exist in the user's
environment,
it causes errors when user install the gem.
When creating a package using `fluent-package.spec.in`, the environment
variable `LDFLAGS` was automatically set as follows.
```
LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/root/rpmbuild/BUILD/fluent-package-6.0.0/.package_note-fluent-package-6.0.0-1.amzn2023.x86_64.ld'
```
Ruby's `configure` refers to the environment variable `LDFLAGS`,
and it expands into `RbConfig::CONFIG`.
Fix
fluent-plugins-nursery/fluent-plugin-node-exporter-metrics#21
Fix #590
---------
Signed-off-by: Shizuo Fujita <[email protected]>1 parent 712cff4 commit 2394a9f
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
0 commit comments