Skip to content

Commit cb342a9

Browse files
committed
cctools: do not rely on gdb location for debug symbols
By default gdb uses $argv0/debug, so in case of gdb is in opt (and we need this to keep it separate), and clickhouse binary in /usr/lib, it will not find debug symbol
1 parent b84eb1e commit cb342a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/packager/cctools/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ RUN apt-get update \
5353
RUN wget https://sourceware.org/pub/gdb/releases/gdb-$GDB_VERSION.tar.gz \
5454
&& tar -xvf gdb-$GDB_VERSION.tar.gz \
5555
&& cd gdb-$GDB_VERSION \
56-
&& ./configure --prefix=/usr \
56+
&& ./configure --prefix=/opt/gdb --with-separate-debug-dir=/usr/lib/debug \
5757
&& make -j $(nproc) \
58-
&& make install DESTDIR=/opt/gdb \
58+
&& make install \
5959
&& rm -fr gdb-$GDB_VERSION gdb-$GDB_VERSION.tar.gz
6060

6161
# just in case

0 commit comments

Comments
 (0)