Opened 12 years ago

Closed 9 years ago

#4169 closed Bugs (wontfix)

Dependency feature does not build dependency targets.

Reported by: René Rivera Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

I added a feature to take advantage of Apple's linker option "-force_load" (see [61684]). Unfortunately it doesn't totally work. The dependency I specify is a BB target itself, for example:

lib mylib : x.cpp ;

exe test : main.cpp : <force-load>mylib/<link>static ;

Will add the correct link option and path to the archive. But it doesn't build, as I would expect, the mylib.a archive.

Change History (2)

comment:1 by René Rivera, 12 years ago

I "worked around it" by manually doing a DEPENDS (see [61689]), But it still seems like this is something that should be done automatically.

comment:2 by Steven Watanabe, 9 years ago

Resolution: wontfix
Status: newclosed

This is the expected behavior. A "dependency" feature is a target. It doesn't necessarily create a build dependency. (For example, implicit-dependency and use are both dependency features.)

Note: See TracTickets for help on using tickets.