2nd attempt at fixing build of btrfs and packagefs.

* adding zlib to the kernel unfortunately introduces a cyclic dependency
  with respect to the zlib, haiku and haiku_devel packages (AFAICS)
* circumvent this by building kernel_zlib as a static library again,
  this time with PIC, such that it can be used by kernel add-ons
This commit is contained in:
Oliver Tappe 2013-09-01 14:38:17 +02:00
parent 0cb3f70926
commit 64c4bd1dc2

View File

@ -17,7 +17,7 @@ LOCATE on [ FGristFiles $(zlibSources) ] = $(zlibSourceDirectory) ;
Depends [ FGristFiles $(zlibSources) ]
: [ BuildFeatureAttribute zlib : sources ] ;
# Build zlib with PIC, such that it can be used by kernel add-ons (filesystems).
KernelStaticLibrary kernel_libz.a :
$(zlibSources)
: -fno-pic
;