help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash custom builtins function - link math library


From: Chet Ramey
Subject: Re: Bash custom builtins function - link math library
Date: Mon, 24 Jul 2023 11:39:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 7/21/23 5:48 AM, Gianluca Graziadei S308963 wrote:
Dear all,

for academic purpose I need to build a custom builtin function.
I have wrote the .def file and I have modified the Makefile.in in builtins to build the needed files.
How can I link the mathemaical library during the build from .def to .o file ?

Add -lm to the value of LOCAL_LIBS in the top level Makefile.in, then run

make Makefile
make


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]