Skip to content

Commit

Permalink
configure.py: add --static-stdc++ to link libstdc++ statically
Browse files Browse the repository at this point in the history
This is required to packaging scylla for Ubuntu 14.04LTS, since we are packaging iotune from seastar.

Signed-off-by: Takuya ASADA <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
syuu1228 authored and avikivity committed Mar 3, 2016
1 parent b3fc7c5 commit ba615c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def sanitize_vptr_flag(compiler):
help = 'Path to DPDK SDK target location (e.g. <DPDK SDK dir>/x86_64-native-linuxapp-gcc)')
arg_parser.add_argument('--debuginfo', action = 'store', dest = 'debuginfo', type = int, default = 1,
help = 'Enable(1)/disable(0)compiler debug information generation')
arg_parser.add_argument('--static-stdc++', dest = 'staticcxx', action = 'store_true',
help = 'Link libgcc and libstdc++ statically')
add_tristate(arg_parser, name = 'hwloc', dest = 'hwloc', help = 'hwloc support')
add_tristate(arg_parser, name = 'xen', dest = 'xen', help = 'Xen support')
args = arg_parser.parse_args()
Expand Down Expand Up @@ -324,6 +326,10 @@ def have_xen():
print("Error: only xen or dpdk can be used, not both.")
sys.exit(1)

if args.staticcxx:
libs = libs.replace('-lstdc++', '')
libs += ' -static-libgcc -static-libstdc++'

memcache_base = [
'apps/memcached/ascii.rl'
] + libnet + core
Expand Down

0 comments on commit ba615c7

Please sign in to comment.