How i can static build GDB from source?

前端 未结 3 1902
走了就别回头了
走了就别回头了 2021-02-07 14:42

I\'ve download gdb-6.5.bz2.tar. Untar this file. I write: LDFLAGS=-static ./configure

but as a result i get a gdb, which require a so files, for instance: ncurses.so.5

3条回答
  •  萌比男神i
    2021-02-07 15:17

    You can use the following options for configure script to generate a static GDB executable:

    ./configure --prefix=<> --enable-static=yes && make && make install
    

提交回复
热议问题