Questions tagged [ldflags]

LDFLAGS is a variable used in Makefiles. Specifically its value is added to linker command lines when the linker is invoked by an implicit rule.

LDFLAGS is a variable used in Makefiles. Specifically its value is added to linker command lines when the linker is invoked by an implicit rule.

64 questions
1
vote
1 answer

How to compile chromium with additional flags?

I am going to instrument Chromium. So, after adding some tracepoints, I have to add some additional flags during compilation of Chromium but I do not know where I should add them exactly! Do you have any idea how I can compile chromium with the…
user32557
  • 41
  • 3
1
vote
1 answer

Determine which options OpenSSH was compiled with?

I want to upgrade openssh-server from source code. I have a problem on how to find out what options OpenSSH was compiled with. How can I determine which options OpenSSH was compiled with?
thorsiv
  • 91
  • 2
  • 6
1
vote
0 answers

Go lang compiler causes (unknown) error with ldflags

I'm trying to compile Syncthing for WD My Cloud Ex2. It's an arm architecture and it works with 64kb pagefile, so while compiling, there must be a flag ("-R 65536"). When compiling I get the following error c:\src\github.com\syncthing\syncthing>go…
1
vote
0 answers

LDFLAGS and cross compiling issue only with some libraries (ex directfb, libjpeg)

I am running into a problem with Eclipse when I try to set some libraries in LDFLAGS. I have the following configuration: Eclipse Yocto project with autotools ublibceabi cross-compiler programming in C When I build a simple Hello World program, I…
ku22o
  • 11
  • 2
1
vote
2 answers

Build poco libraries with custom linkflags

I'm trying to build the poco libraries with mudflap support, which requires extra compilation and link flags. I have figured out that the POCO_FLAGS variable in config.make controls the compiler flags. How do I specify link flags? The documentation…
Brian Schlenker
  • 4,966
  • 6
  • 31
  • 44
1
vote
1 answer

How to set flag for correct PCRE? / g_regex_split_full: assertion 'regex != NULL' failed

When calling tokens = g_regex_split (arv_gv_device_get_url_regex (), filename, 0); I am stumbling into this error (process:15239): GLib-WARNING **: unknown option bit(s) set (process:15239): GLib-CRITICAL **: g_regex_split_full: assertion 'regex !=…
evsc
  • 260
  • 3
  • 10
1
vote
1 answer

Unable to configure rpy2 on ubuntu

I am new to this forum and its my first question. I am stuck with a task to configure a pipeline on a machine running Ubuntu 12.04 and few of the requirements for this are R version > 3, rpy2. I have been trying to configure rpy2 package. It comes…
biowizz
  • 23
  • 4
1
vote
1 answer

Cross-Compiling Iperf using Android NDK toolchain : Iperf running in host machine but not in target machine

I am trying to compile iperf source code and run it on android devices.I am using an ubuntu server for compiling the code. I have downloaded the iperf source code as well as the Android NDK. I built the toolchain using make-standalone-toolchain.sh.…
Mohit Kumar
  • 53
  • 1
  • 8
1
vote
1 answer

OpenSSH upgrade library vs header mismatch

I am installing a newer version of openssh on to an ubuntu server (raring 13.04) I have set export LDFLAGS="-I/usr/lib-I/usr/local/lib" And when running my ./configure statement which is ./configure --prefix=/usr --exec_prefix=/usr…
user2744200
  • 11
  • 1
  • 2
0
votes
0 answers

'symbol lookup error: undefined symbol' after change of module system on cluster

after the operating system of the cluster I am running my application on with PETSC (Version 3.19) has been changed from CentOS 7 to Rocky Linux 8 and also the module system has been changed to Lmod, I get several error: symbol lookup error:…
Mahe
  • 1
0
votes
0 answers

CMake with external projects adds LDFLAGS too early

Cmake on my project uses external projects. I want to recompile everything, but I want to pass -llikwid flag too all linking commands, including all external project. I exported LDFLAGS="-llikwid", but it's not working. The LDFLAGS gets added too…
Bogi
  • 2,274
  • 5
  • 26
  • 34
0
votes
1 answer

What is the difference between -Wl,--export-dynamic and -Wl,-export-dynamic (single vs double-dash)?

A user of xnec2c was trying to build on OSX with clang and got this error: gcc --pedantic -Wall -std=gnu11 -O2 -g -Wformat -Werror=format-security -fpie -Wno-overlength-strings -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED…
KJ7LNW
  • 1,437
  • 5
  • 11
0
votes
0 answers

undefined reference to function nanomsg

Treating as Server code: I have created an shared library,which contains nanomsg package functionality. Adding DEPENDS += "nanomsg" in bb file. (Without this gives "no such file are directory" errors). Server will send some data to…
0
votes
1 answer

Linking against a specific library version with LDFLAGS

I need to cross compile a program using ncursesw5 and ncursesw6 separately. I'm in Debian Buster which comes with ncursesw6. So I ran apt install libncursesw5:i386 libncursesw5-dev:i386. Then I attempted to run ./configure --host=i686-linux-gnu…
Pete Darrow
  • 455
  • 5
  • 20
0
votes
1 answer

How to link Libraries in non-standard locations for compilation

I'm new to linux, and am trying to compile and install some libraries. Unfortunately, things are quite difficult as I am unable to obtain sudo access to my machine, and had to install the libraries in non-standard locations. I'm having trouble…
Nihao mao
  • 1
  • 1