rumpkernel / rumprun

The Rumprun unikernel and toolchain for various platforms
Other
1.14k stars 128 forks source link

Append -no-pie when necessary #99

Closed liuw closed 6 years ago

liuw commented 7 years ago

When building rumprun on Debian Stretch, it fails with something like:

/usr/bin/ld: -r and -pie may not be used together

That's due to:

  1. Stretch's gcc contains -pie by default
  2. Rumprun uses $(CC) to link objects

We can't simply append -no-pie because it is not supported by all gcc versions.

Adding the functionality to append -no-pie isn't too hard, but it is unclear where I should put it.

@anttikantee any suggestion?

kent-mcleod commented 6 years ago

Fixed by #118