diff options
author | Martin Xu <martinxu9.ovs@gmail.com> | 2018-08-31 11:52:42 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-09-05 14:21:30 -0700 |
commit | eac9f26661aeb3bf565a4730e04f1f05f44bf444 (patch) | |
tree | ca5f5f7d412da18ac4d187b9ae32bf0c224b51ef /rhel | |
parent | 56bfa517d9c8face982efc852644c72e1b5b1564 (diff) | |
download | openvswitch-eac9f26661aeb3bf565a4730e04f1f05f44bf444.tar.gz |
rhel: allow passing more flags to configure, fedora
Define a variable _ovs_config_extra_flags to allow passing more flags to
configure when building OVS kmod RPM. For example, to build with a
non-standard openssl and add an RPATH, use the following command
make rpm-fedora-kmod RPMBUILD_OPT='-D "_ovs_config_extra_flags
--with-openssl=<path to your openssl header> LDFLAGS=\"\${LDFLAGS} -Xlinker
-rpath=<path to your openssl lib>\""'
Signed-off-by: Martin Xu <martinxu9.ovs@gmail.com>
CC: Greg Rose <gvrose8192@gmail.com>
CC: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Reviewed-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-kmod-fedora.spec.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rhel/openvswitch-kmod-fedora.spec.in b/rhel/openvswitch-kmod-fedora.spec.in index 7b5c78606..50be64cf4 100644 --- a/rhel/openvswitch-kmod-fedora.spec.in +++ b/rhel/openvswitch-kmod-fedora.spec.in @@ -47,7 +47,7 @@ traffic. This package contains the kernel modules. for kv in %{kversion}; do mkdir -p _$kv (cd _$kv && /bin/cp -f ../configure . && %configure --srcdir=.. \ - --with-linux=/lib/modules/${kv}/build --enable-ssl) + --with-linux=/lib/modules/${kv}/build --enable-ssl %{_ovs_config_extra_flags}) make %{_smp_mflags} -C _$kv/datapath/linux done |