Ed Maste <ema...@freebsd.org> writes:

> When this knob is set standalone debug files for shared objects are
> built and installed in /usr/lib/debug/<so pathname>.debug.  GDB
> searches this path for debug data.
[...]
> - Change GDB's standalone debug file path to the default /usr/lib/debug.
[...]
> diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
> index 336d055..7b428d5 100644
> --- a/etc/mtree/BSD.usr.dist
> +++ b/etc/mtree/BSD.usr.dist
> @@ -18,6 +18,22 @@
>              aout
>              ..
>          ..
> +        debug
> +            boot
> +            ..
> +            lib
> +                geom
> +                ..
> +            ..
> +            usr
> +                lib
> +                    engines
> +                    ..
> +                ..
> +                lib32
> +                ..
> +            ..
> +        ..
>          dtrace
>          ..
>          engines

What about ports? They are not allowed to install outside of PREFIX.

  $ cd multimedia/cuse4bsd-kmod
  $ make install PREFIX=/tmp/aaa PKG_DBDIR=/tmp/pkg WITH_DEBUG=
  [...]
  install -C -o root -g wheel -m 444   libcuse4bsd.a /tmp/aaa/lib
  install -s -o root -g wheel -m 444     libcuse4bsd.so.1 /tmp/aaa/lib
  install -o root -g wheel -m 444    libcuse4bsd.so.1.debug 
/usr/lib/debug/tmp/aaa/lib
  install: /usr/lib/debug/tmp/aaa/lib: No such file or directory
  *** [_libinstall] Error code 71
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to