Fix broken compile options for httpd.bin
This patch changes the build options for httpd.bin. The current options do not work when the binary is used on cirros. The error is: $ ./httpd.bin -sh: ./httpd.bin: not found $ ldd httpd.bin checking sub-depends for '/lib64/libpthread.so.0' ld64-uClibc.so.0 => /lib/ld64-uClibc.so.0 (0x7f7b741be000) libdl.so.0 => /lib/libdl.so.0 (0x7f7b73fba000) libc.so.0 => /lib/libc.so.0 (0x7f7b73d50000) checking sub-depends for 'not found' libpthread.so.0 => /lib64/libpthread.so.0 (0x00000000) libc.so.6 => not found (0x00000000) /lib/ld64-uClibc.so.0 => /lib/ld64-uClibc.so.0 (0x00000000) The repo for this tempest plugin provides a different option to build the httpd.bin https://github.com/openstack/octavia-tempest-plugin/tree/1.3.0/ octavia_tempest_plugin/contrib/test_server/ Using this option the httpd.bin runs as expected on cirros. Change-Id: I569d76303030cb1a6dd96a74056a066e7fc876b3
This commit is contained in:
parent
91b9f4c4df
commit
4cbdd04830
@ -43,7 +43,7 @@ pushd octavia_tempest_plugin/contrib/httpd
|
||||
# we don't want to ship a binary blob that we didn't build ourself
|
||||
rm -f httpd.bin
|
||||
%if 0%{?suse_version}
|
||||
go build -ldflags '-linkmode=external' -o httpd.bin httpd.go
|
||||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s -w -extldflags -static' -o httpd.bin httpd.go
|
||||
%else
|
||||
# NOTE(jpena): the CentOS 8 build fails without this flag
|
||||
go build -ldflags '-linkmode=external -compressdwarf=false' -o httpd.bin httpd.go
|
||||
|
Loading…
x
Reference in New Issue
Block a user