help-make
[Top][All Lists]
Advanced

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

loaded objects example [tiny PATCH & Q]


From: Jannick
Subject: loaded objects example [tiny PATCH & Q]
Date: Sat, 6 May 2017 22:40:47 +0200

On the loaded objects example
(https://www.gnu.org/software/make/manual/make.html#Example-Loaded-Object):

1 - attached really tiny patch on edits in the documentation to make things
running and gcc less complaining.

2 - Living on Win10 (with Cygwin), I had to create libgnumake-1.dll.a myself
which did not drop out of the ordinary 'make' run as is because of the error
at the very end of the compilation (link): '...\i686-pc-cygwin/bin/ld:
warning: --export-dynamic is not supported for PE targets, did you mean
--export-all-symbols?'. A quick manual change in the makefile (created by
'./configure') from 
 
        AM_LDFLAGS = -Wl,--export-dynamic
to

        AM_LDFLAGS = -Wl,--export-all-symbols

helped then. I am not sure where to amend that ahead of running the
makefile, since I am not a configure guru at all.

3 - Q: If mk_temp.dll does not exist yet, make dislikes the makefile
(Windows version) below suggested in the documentation. Is there any way to
have make build the dll if it is not yet available to be loaded?

all:
        @echo Temporary file: $(mk-temp tmpfile.)

load mk_temp.dll

mk_temp.dll: mk_temp.c
        $(CC) -shared -o $@ $< -L. -lgnumake-1


Please let me know if this is not the right place here to post things as
combined above.

Many thanks,
J.

Attachment: make.info-2.patch
Description: Binary data


reply via email to

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