#12710: BPackageInfo; URL Validation Checks
--------------------------------+----------------------------
Reporter: apl-haiku | Owner: bonefish
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits/Package Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
--------------------------------+----------------------------
Comment (by apl-haiku):
The link for `libbe_build.so` looks something like this;
{{{
cc -lm -L/opt/local/lib -dynamic -dynamiclib -Xlinker -flat_namespace \
-o ".../objects/darwin/lib/libbe_build.so"
...
".../objects/darwin/x86_64/release/build/libshared/libshared_build.a" \
".../objects/darwin/x86_64/release/build/libgnuregex/libgnuregex_build.a"
\
-lz -lgcc_s.1 -lstdc++
}}}
I've figured out that if I move the `-lm` into the end (directly after
`-lz`) then the link process *does* bundle the symbols...
* _regcomp
* _regexec
* _regfree
...into the linked `libbe_build.so` which is what I need. Actually, I can
also omit the `-lm` and it also seems to be happy on the MacOS-X build
host. I guess I need to figure out how to shift the `-lm` to the end
where it should be.
I can see the `-lm` is added in `BuildSetup:448` as variable
`HOST_LINKFLAGS` and it seems to get used in the linking process at
`OverriddenJamRules:23`.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12710#comment:30>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.