I'm using autotools to create package of my software then i wanted to make debian package but after runing debuild i get those warnings:

Now running lintian...
W: minorin: hardening-no-relro usr/bin/minorin
W: minorin: hardening-no-fortify-functions usr/bin/minorin

google pointed me to this:

This package provides an ELF binary that lacks the "read-only relocation" link flag. This package was likely not built with the default Debian compiler flags defined by dpkg-buildflags. If built using dpkg-buildflags directly, be sure to import LDFLAGS.

so do I have to just copy the output of dpkg-buildflags to my src/Makefile.am or is there a way to automatically include it...

asked 03 Aug '12, 17:10

shinnra's gravatar image

shinnra
11112
accept rate: 0%




That's a common error, as seen here.

The Hardening problem's well explained here, so simply place the following on your debian/rules.

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
link

answered 11 Apr '13, 14:54

alexdantas's gravatar image

alexdantas
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×6
×4

Asked: 03 Aug '12, 17:10

Seen: 38,964 times

Last updated: 11 Apr '13, 14:54

powered by OSQA