mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Issue 1080
This commit is contained in:
parent
a639280339
commit
856b53c046
@ -1 +1,4 @@
|
||||
#include "a.h"
|
||||
|
||||
int k = 332;
|
||||
|
||||
|
1
playground/relocate/c/a/a.h
Normal file
1
playground/relocate/c/a/a.h
Normal file
@ -0,0 +1 @@
|
||||
int u = 0;
|
@ -7,5 +7,5 @@ def configure(conf):
|
||||
conf.load('relocation compiler_c')
|
||||
|
||||
def build(bld):
|
||||
bld.shlib(source='a.c', target='one')
|
||||
bld.shlib(source='a.c', target='one', includes='a')
|
||||
bld.program(source='main.c', target='two', use='one')
|
||||
|
@ -80,6 +80,6 @@ def apply_incpaths(self):
|
||||
lst = self.to_incnodes(self.to_list(getattr(self, 'includes', [])) + self.env['INCLUDES'])
|
||||
self.includes_nodes = lst
|
||||
bld = self.bld
|
||||
self.env['INCPATHS'] = [x.is_child_of(bld.srcnode) and x.path_from(bld.srcnode) or x.abspath() for x in lst]
|
||||
self.env['INCPATHS'] = [x.is_child_of(bld.srcnode) and x.path_from(bld.bldnode) or x.abspath() for x in lst]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user