Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 527
    • Issues 527
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 101
    • Merge requests 101
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • BINDBIND
  • Issues
  • #454

Closed
Open
Created Aug 01, 2018 by Tony Finch@fanfOwner

Broken build with custom LDFLAGS

When building BIND I install with a per-build path in /opt so that I can roll forward / roll back easily. Instead of configuring the run-time linker, I use the linker -R flag to set the run path in the binary.

The essence is:

LDFLAGS="-Wl,-R$PREFIX/lib,-R$OpenSSL/lib" \
./configure 	--with-libfstrm=$PREFIX \
	--with-openssl=$OpenSSL \
	--prefix=$PREFIX

LD_RUN_PATH="$PREFIX/lib:$OpenSSL/lib" make all

LDFLAGS is a supported build environment variable (see BIND's README)

This configuration was broken by commit a0571d38, in particular the commit message says:

  - set LDFLAGS in the Makefile for dig so that, if specified, the requested libidn2 path is used when linking with libidn2,

This breaks my LDFLAGS setting so dig now fails to link.

The commands I used to blame this commit was

git bisect start master v9_13_0
git bisect run ../rebuild-bind.sh

rebuild-bind.sh

Assignee
Assign to
Time tracking