Skip to content

Commit

Permalink
Build fixes for Debian stable.
Browse files Browse the repository at this point in the history
Of course, the code itself will still only build with gcc >= 4.8
  • Loading branch information
blitz committed Nov 4, 2013
1 parent 8c71011 commit 23204c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ if not conf.CheckType('struct virtio_net_hdr', '#include <pci/types.h>\n#include
conf.env.Append(CPPPATH = ["#linux-headers/include"])
print("Linux headers installed. Let's hope this works.")

if not conf.AddOptionalFlag('.cc', 'CXXFLAGS', '-std=c++11') and not conf.AddOptionalFlag('.cc', 'CXXFLAGS', '-std=c++0x'):
# We have to use gnu++11 here to make old versions of userspace-rcu happy.
if not conf.AddOptionalFlag('.cc', 'CXXFLAGS', '-std=gnu++11') and not conf.AddOptionalFlag('.cc', 'CXXFLAGS', '-std=c++0x'):
print("Your compiler is too old.")
Exit(1)

Expand Down Expand Up @@ -179,6 +180,6 @@ if pcap_is_available:
else:
print("Not building test/packets! Not running tests!")

host_env.Program('test/membw', ['test/membw.cc'])
host_env.Program('test/membw', ['test/membw.cc'], LIBS=["rt"])

# EOF

0 comments on commit 23204c3

Please sign in to comment.