avast / avast/retdec

Static libraries

Open
#755 2 comments 0 reactions 0 assignees View on GitHub
C-build-system Q-question
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Hello.
I am making packages for linux distrubition [PisiLinux](https://pisilinux.org)

1. At the end of the compilation there are "static libraries" under /usr/lib64. How can i prevent compiling static libraries? The parameter
`DBUILD_STATIC_LIBS=OFF `
doesnt work. Any ideas?

2. under support directory and in the CMakeLists.txt file. Absolute paths arenot working all right.
```
set(SUPPORT_TARGET_DIR "${RETDEC_INSTALL_SUPPORT_DIR_ABS}")
set(YARAC_PATH "${RETDEC_INSTALL_BIN_DIR_ABS}/retdec-yarac${CMAKE_EXECUTABLE_SUFFIX}")
set(YARAC_VERSION_PATH "${SUPPORT_TARGET_DIR}/version-yarac.txt")
```
`SUPPORT_TARGET_DIR` doesnt work
`RETDEC_INSTALL_BIN_DIR_ABS` doesnt work either. They dont return the absolute paths.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the CMakeLists.txt in the support directory and trace where DBUILD_STATIC_LIBS, RETDEC_INSTALL_SUPPORT_DIR_ABS, and RETDEC_INSTALL_BIN_DIR_ABS are defined. Reproduce the Linux package build, then verify that static libraries are omitted and the support and binary paths resolve to absolute locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.