Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ add_library(linuxdeploy_plugin STATIC
)
target_link_libraries(linuxdeploy_plugin PUBLIC linuxdeploy_core linuxdeploy_subprocess)

unset(headers)
unset(headers_dir)

install(TARGETS linuxdeploy_plugin)
4 changes: 4 additions & 0 deletions src/plugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ namespace linuxdeploy {

// also, look for plugins in current working directory
// could be useful in a "use linuxdeploy centrally, but download plugins into project directory" scenario
#ifdef _GNU_SOURCE
std::shared_ptr<char> cwd(get_current_dir_name(), free);
#else
std::shared_ptr<char> cwd(getcwd(nullptr, 0), free);
#endif
paths.emplace_back(cwd.get());

for (const auto& dir : paths) {
Expand Down
2 changes: 1 addition & 1 deletion src/subprocess/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <utility>
#include <unistd.h>
#include <memory.h>
#include <wait.h>
#include <sys/wait.h>
#include <sstream>

// local headers
Expand Down
7 changes: 7 additions & 0 deletions src/subprocess/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
#include "linuxdeploy/subprocess/util.h"
#include "linuxdeploy/util/misc.h"

#ifdef __FreeBSD__
// On FreeBSD environ has to be declared in the consumer code
extern "C" {
extern char** environ;
}
#endif

namespace linuxdeploy::subprocess {
subprocess_env_map_t get_environment() {
subprocess_env_map_t result;
Expand Down
Loading