Skip to content

Commit

Permalink
Static linking of rdkafka requires ssl on centos7/rhel7.
Browse files Browse the repository at this point in the history
Closes-Bug: 1560309

Change-Id: I06eec163c97f342f839ea8d5cb539c96746bbf14

Conflicts:
	src/analytics/SConscript
Change-Id: If8822b9df64aad91d2b44ca5c7db33b4015d2a5e
  • Loading branch information
anishmehta committed Mar 22, 2016
1 parent 7891bc8 commit 1296a86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/analytics/SConscript
Original file line number Diff line number Diff line change
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 1296a86

Please sign in to comment.