/usr/bin/ttmkfdir in ttmkfdir-3.0.9-53.fc28.x86_64 is not linked with the standard Fedora linker flags (LDFLAGS) from redhat-rpm-config: libtool: link: g++ -o ttmkfdir ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o -ggdb -lfreetype -lz LDFLAGS are completely missing. See https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md for information on RPM macros and environment variables provided by the build environment.
Does this change looks okay? @@ -35,6 +35,8 @@ by the font server. %prep %autosetup -p1 +sed -i '32i override LDFLAGS += -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now' Makefile + %build make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS" scratch-build https://koji.fedoraproject.org/koji/taskinfo?taskID=25536278
(In reply to Parag Nemade from comment #1) > Does this change looks okay? > > @@ -35,6 +35,8 @@ by the font server. > %prep > %autosetup -p1 > > +sed -i '32i override LDFLAGS += -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now' > Makefile > + You should use a regular patch to avoid any nasty surprises, and use “LDFLAGS += $(RPM_OPT_FLAGS)”, instead of hard-coding those flags.
Thanks. Built for F28+ with Makefile patch +override LDFLAGS += $(RPM_LD_FLAGS) https://koji.fedoraproject.org/koji/buildinfo?buildID=1055064
ttmkfdir-3.0.9-54.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d9af475c71
ttmkfdir-3.0.9-54.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d9af475c71
ttmkfdir-3.0.9-54.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.