[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bindings-dsl and profiling



Hello

I try to profile a package which use binding-dsl via another dependency.

When I build the project, I get at the end


Linking dist/build/ghkl/ghkl ...
/usr/bin/ld : ne peut trouver -lHSbindings-DSL-1.0.23-Es09zjDpTFQCqScuh7qYEQ_p
collect2: error: ld returned 1 exit status


Indeed this file dos not exist and the binding-dsl do not provide a -prof package.

Is it expected ?

I see that the rules files contain this.


#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk

install/libghc-bindings-dsl-dev:: debian/tmp-inst-ghc
	mv debian/tmp-inst-ghc/usr/lib/haskell-packages/ghc/lib/*-ghc-*/bindings-DSL-*/include debian/libghc-bindings-dsl-dev/usr


In order to solve my problem,

I created a link to the non-prof static library

ln -s libHSbindings-DSL-1.0.23-Es09zjDpTFQCqScuh7qYEQ.a libHSbindings-DSL-1.0.23-Es09zjDpTFQCqScuh7qYEQ_p.a 

then I could profile my project.



so my question is:

what is the proper way to fix this issue.

1) create a -prof package

or

add simple symlink


Cheers


Frederic

Reply to: