Skip to content

Commit

Permalink
Merge "Static linking of rdkafka requires ssl on centos7/rhel7. Close…
Browse files Browse the repository at this point in the history
…s-Bug: 1560309" into R2.22.x
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 22, 2016
2 parents b9f7a4a + 1296a86 commit 8f89ca2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/analytics/SConscript
Expand Up @@ -7,6 +7,7 @@

import os
import sys
import platform

Import('BuildEnv')
AnalyticsEnv = BuildEnv.Clone()
Expand Down Expand Up @@ -57,6 +58,12 @@ AnalyticsEnv.Prepend(LIBS=['cpuinfo',
'boost_filesystem',
'boost_program_options'])

(PLATFORM, VERSION, EXTRA) = platform.linux_distribution()
if PLATFORM.lower() != 'ubuntu':
AnalyticsEnv.Prepend(LIBS=['ssl',
'crypto',
'sasl2'])

if sys.platform != 'darwin':
AnalyticsEnv.Append(LIBS=['rt'])

Expand Down

0 comments on commit 8f89ca2

Please sign in to comment.